Set Action as iconButton() specifically handle record actions not overall
is there any way to set record action as icon button globally without change one by one in every action and resources ?
Solution:Jump to solution
Just tried the same example by @Oscar Carvajal but with EditButton, works for me:
```
use Filament\Actions\EditAction;
...
6 Replies
Inside any service provider's
boot() method, you can apply global settings calling the static coonfigureUsing() component method. I always create a "CustomizationServiceProvider.php" with all my Filament customizations
Thanks, bro. I really appreciate it.
This works, but it will need some extra steps for actions that require labels, like the header action, login button, and form action button.
I was just wondering if there’s a global function that could specifically handle record actions in tables using only the button icon, without changing the default button view overall. That’s what I was trying to ask.
Solution
Just tried the same example by @Oscar Carvajal but with EditButton, works for me:
result:

Oh, got it! What @Povilas Korop says works too. But, as I understand it now, you are referring to scope the changes only to table edit record actions, is that right? If it is, I think that the best approach for that is to make a custom action, extending from Edit Action, and use this custom action inside your table record actions. What @Povilas Korop is a good approach but, I'm pretty sure that it will change page header Edit Action too and, only to check if I understand your requirement, you don want that right?. An example of what I mean to creating a custom edit recor action:
And then, you can implement your Custom Record Edit Action like this:
(Sorry for miss formatting the table example, but idk why is not taking the comment lines on actions)
oh, great it work as well expected, in my opinion the simple way is register specific record action into service provider, but i really appreciate it.