F
Filament2mo ago
Gush

Position row action before columns

Filament has in the docs a way to position all actions before columns but what if i only want to position certain action before columns? https://filamentphp.com/docs/3.x/tables/actions#positioning-row-actions-before-the-checkbox-column
4 Replies
LeandroFerreira
LeandroFerreira2mo ago
maybe using ->hidden() ->visible() to hide/show the action?
Gush
Gush2mo ago
Not quite what i wanted, because im doing a renew contract action and i wanted it to be on the start of the row and then have the normal edit/delete actions on the end
awcodes
awcodes2mo ago
i dont think there's a way to spit the row actions. you could create a custom column though that uses either a column action or a link in the view for the column.
LeandroFerreira
LeandroFerreira2mo ago
Custom column I think You could try something like this
Tables\Columns\TextColumn::make('action')
->icon('heroicon-o-pencil')
->state('custom')
->action(function () {
//...
})
Tables\Columns\TextColumn::make('action')
->icon('heroicon-o-pencil')
->state('custom')
->action(function () {
//...
})
Want results from more Discord servers?
Add your server
More Posts