FilamentF
Filament14mo ago
Kenneth

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


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
Was this page helpful?