F
Filament2mo ago
bwubs

Example for custom actions

I'm missing documentation for creating custom actions. Forms, Schema's, Tables and Infolists all have their dedicated section detailing how to create custom actions in V4. I have a lot of them in V3 style, but i'm curious if something has changed, or if I'm missing something. For example, looking at the documentation for testing actions I see an example where a simple action class just returns an Action from the make method. This is different than what we do, extending the Action class. What is the preferred way? Or are both accepted?
Solution:
Both are acceptable
Jump to solution
2 Replies
Solution
awcodes
awcodes2mo ago
Both are acceptable
Dennis Koch
Dennis Koch2mo ago
Returning an action instead of extending, has the benefit, that you won't get method name collissions in the future and always use the Action API

Did you find this page helpful?