F
Filamentβ€’3mo ago
SuperUserDo

Reorder Table With Label Beside Button

Hi guys, I was wondering if there is option to add label "Reorder" next to reoorder icon?
No description
No description
6 Replies
CodeWithDennis
CodeWithDennisβ€’3mo ago
->reorderRecordsTriggerAction(function (Tables\Actions\Action $action) {
return $action->button();
})
->reorderRecordsTriggerAction(function (Tables\Actions\Action $action) {
return $action->button();
})
If you want to set it on all tables you can add the following code to your AppServiceProvider.php in the boot method.
Table::configureUsing(function (Table $table): void {
$table->reorderRecordsTriggerAction(fn(Tables\Actions\Action $action) => $action->button());
});
Table::configureUsing(function (Table $table): void {
$table->reorderRecordsTriggerAction(fn(Tables\Actions\Action $action) => $action->button());
});
@SuperUserDo Hopefully thats helps.
SuperUserDo
SuperUserDoOPβ€’3mo ago
Thanks, I'l try it out!
SuperUserDo
SuperUserDoOPβ€’3mo ago
All good here, I did it like this
No description
CodeWithDennis
CodeWithDennisβ€’3mo ago
If you want it on all tables that have reorder, you can use the other example. So you don't have to manually add it everytime πŸ˜‰ Anyway, you can mark the answer and solved so people can find it in the future.
CodeWithDennis
CodeWithDennisβ€’3mo ago
No description
SuperUserDo
SuperUserDoOPβ€’3mo ago
Sorry was on a break πŸ™‚
Want results from more Discord servers?
Add your server