#Example for custom actions

4 messages · Page 1 of 1 (latest)

idle burrow
#

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?

candid raptorBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

tulip stone
#

Both are acceptable

glossy kestrel
#

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