Split table actions

I would like to split some of my table actions to the front and leave the rest at the end of the table.
$table->actions([
// FIXME: ActionsPosition::BeforeCells
LoginAction::run(),

// FIXME: ActionsPosition::AfterCells
EditAction::make()
->label(__('table_fields.actions.edit'))
->label('')
->tooltip(__('table_fields.actions.edit'))
->size('lg')
->icon('heroicon-o-pencil-square'),

DeleteAction::make()
->label('')
->tooltip(__('table_fields.actions.delete'))
->size('lg')
->icon('heroicon-o-trash'),
]);
$table->actions([
// FIXME: ActionsPosition::BeforeCells
LoginAction::run(),

// FIXME: ActionsPosition::AfterCells
EditAction::make()
->label(__('table_fields.actions.edit'))
->label('')
->tooltip(__('table_fields.actions.edit'))
->size('lg')
->icon('heroicon-o-pencil-square'),

DeleteAction::make()
->label('')
->tooltip(__('table_fields.actions.delete'))
->size('lg')
->icon('heroicon-o-trash'),
]);
I asked ChatGPT (for once) if it is possible and he came with a solution that seems to be removed in v3 (Filament\Tables\Actions\Position has moved to Filament\Tables\Enums\ActionsPosition) Perhaps it is not possible what I am trying to do, but thought I'd ask for help before giving up 🫡 My apologies if it is a real simple fix and I should've read better
3 Replies
Kenneth
KennethOP2mo ago
Correct, that places ALL actions to the front of the table. However, I would like only one action, from the three existing ones, to be in the front.
Firebat
Firebat2mo ago
not possible, i think you can maybe look it on table builder layout on the docs, and there's maybe something there that would help you
Want results from more Discord servers?
Add your server