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β€’4w 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
SuperUserDoβ€’4w ago
Thanks, I'l try it out!
SuperUserDo
SuperUserDoβ€’4w ago
All good here, I did it like this
No description
CodeWithDennis
CodeWithDennisβ€’4w 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β€’4w ago
No description
SuperUserDo
SuperUserDoβ€’4w ago
Sorry was on a break πŸ™‚
Want results from more Discord servers?
Add your server