Read more

Extending dojo.dnd with a creator function

Following the Dojo philosophy of “build with, not on”, dojo.dnd provides a terrific API for getting the right behaviour for your app, with plenty of extension points and monkeypatching opportunities. Making a creator function for dojo.dnd.Container is the most obvious way to customize dojo.dnd, because it gets called anytime a container or avatar wants to visualize a data item.

Read the rest of this entry »

Read more

Why doesn’t myTitlePane.title = “work” ?

Newcomers to dijit often instantiate a widget and wonder why “normal” dom getter/setters don’t work to adjust the properties. There is a perfectly valid reason for this, so lets inspect.

For example, a Markup declaration of a dijit.TitlePane:

Read the rest of this entry »