Closed steeffeen-zz closed 7 years ago
Maybe something like
setScriptAction($action, array() $arguments=array())
would be a more comprehensive syntax. I'm not sure how it handles escaping ' in arguments, but this string composition in general would be a nice thing to be handled by the framework imo.
(Regarding getScriptAction it would probably be better to use some data object instead.)
@PRGfx This is a good suggestion! Thanks! I'm thinking about additional get/setScriptActionParameters methods instead of a data object in order to have a comprehensible API.
Controls receive a new scriptaction attribute