#Split table actions

5 messages · Page 1 of 1 (latest)

pine kindle
#

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'),
]);

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

lyric pineBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

pine kindle
#

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.