You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicfunctioncolumns(): array
{
return [
....
Column::make('Status', 'status_badge', 'status_slug')
->sortable() // I dont want it sorted alphabetically, I want to do the sorting in a slightly advanced custom method based on the actual status slug. Or at the very least, sort it based on the order_id
....
]
}
I know about using $sortField and $sortDirection but those seem to be global for all the sortable columns.
I want this specific column to have a custom sort functionality. Is that possible?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know about using
$sortField
and$sortDirection
but those seem to be global for all the sortable columns.I want this specific column to have a custom sort functionality. Is that possible?
Beta Was this translation helpful? Give feedback.
All reactions