Login Register

dojoType

Custom HTML Attributes

I am currently evaluating Dojo, YUI and jQuery. One thing I notice with Dojo that doesn't sit that well with me is the use of custom HTML attributes. Using custom attributes causes problems with validation.

Instead of using dojoType="dijit.layout.AccordionContainer" what is wrong with attaching via CSS class or ID in the javascript. Eg. dojo.setType(document.getElementById('accord'), 'dijit.layout.AccordionContainer');

How do I use markup to create my custom widget and put a dojo widget as its contents also using markup using dojoTypes

I wanted to load a container widget in my custom widget but do it all in markup. How would you do that? I figured seeing this isn't specific on a dijit that this would be the right place to post this. If it's not, I'm sorry.

Syndicate content