Actions in renderHooks
Hello everyone,
I'm trying to return an array of actions in a view that I return through a renderHooks.
My buttons display correctly but do not trigger the
action()
methods. Anyone know why?3 Replies
It seems that my problem is linked to an action name and function name. If I do it this way, it works but I multiply the functions which I don't like:
If I name a function with a name different from the action name. It doesn't work anymore but my view show correctly but not the method
action()
:
The actual function name is important when trying to default render them in the component.
It has to have ‘Action’ on the method name to be able to render.
I understand. Is there a method to specify the function name to be interpreted?
Something like this:
Otherwise do you know in which method the
nameAction()
are registered to understand how it works?