Grab 🇮🇹
How to implement action or trigger event after reordering rows in a table
->reorderRecordsTriggerAction(
fn (TableAction $action, bool $isReordering) => $action
->action(function ($isReordering){
if (! $isReordering) {
CalculateRegistrationPointsByPosition::make('CalculateRegistrationPointsByPosition');
}
}
)
->button()
->label($isReordering ? 'End reordering' : 'Reorder'),
)
33 replies