steeffeen-zz/FancyManiaLinks

Implement scriptaction attribute

Closed this issue · 2 comments

Controls receive a new scriptaction attribute

PRGfx commented

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.