Friday, April 20, 2012
To paraphrase a line from Tropic Thunder, I've gone full retard with my usage of Dojo widgets.
It's not retarded, though. It's one of the proper usages.
Dojo seems to have two ways of doing their widgets. The first, and original way is by putting mark up in the HTML to denote the type and any properties. This is parsed at runtime.
It'll only be a matter of time before I get sick of adding the Dojo data-dojo-type attributes to my CakePHP form elements, and create a DojoFormHelper to default them for particular types of elements.