F
Filament4mo ago
Jonas

Globally configure table record actions - v4

Hi For my application i prefer having all table actions as a ->iconButton() by default. Previously i was able to do this globally in the boot method of a service provider:
use Filament\Tables\Actions\EditAction;
EditAction::configureUsing(function (EditAction $action) {
$action
->tooltip('Edit')
->iconButton()
->iconSize(IconSize::Medium);
});
use Filament\Tables\Actions\EditAction;
EditAction::configureUsing(function (EditAction $action) {
$action
->tooltip('Edit')
->iconButton()
->iconSize(IconSize::Medium);
});
Now that actions are unified (which is fantastic btw), i haven't figured out a way to do this in v4 without it also affecting page actions. Was wondering if there is any way to identify in the action wether or not it is rendered as a recordAction in a table?
4 Replies
Adysone
Adysone4mo ago
Hi I'm sorry, I don't have the solution either, but I'm experiencing the exact same issue. Maybe we should open an issue on GitHub?
ShapeShifter
ShapeShifter4mo ago
its working on me on v4-beta10
EditAction::configureUsing(function (EditAction $action) {
$action
->tooltip('Edit')
->tableIcon(Heroicon::PencilSquare)
->groupedIcon(Heroicon::PencilSquare)
->icon(Heroicon::PencilSquare);
});
EditAction::configureUsing(function (EditAction $action) {
$action
->tooltip('Edit')
->tableIcon(Heroicon::PencilSquare)
->groupedIcon(Heroicon::PencilSquare)
->icon(Heroicon::PencilSquare);
});
Hasan Tahseen
Hasan Tahseen4mo ago
GitHub
Can't make global configuration for table actions only · Issue #16...
Package filament/filament Package Version v4.0.0-beta10 Laravel Version v12.19.3 Livewire Version v3.6.3 PHP Version 8.4.7 Problem description right now if we apply this code in AppServiceProvider ...
Adysone
Adysone4mo ago
It's a "feature request", but it's a regression, no?

Did you find this page helpful?