Update specific column data of each row of another table when reordering the rows of category
Hello guys,
I want to run static "changeSort" when reordering the rows
->striped()->reorderable('sort')->reorderRecordsTriggerAction(
fn (Action $action, bool $isReordering) => $action
->button()
->label($isReordering ? ('text.Disable reordering') : ('text.Enable reordering')),
);
public static function changeSort(){
dd('test');
}
2 Replies
Please check our #✅┊rules before posting. (Code formatting)
If you want to change the sort behaviour you can overwrite the
public function reorderTable(array $order): void
on the ListPage.I want to hit a livewire method "changeLSlot() " in this public function reorderTable(array $order): void.