Read more

Preface to DnD: topics

This is a quick cookie to cover a really cool topic. Custom events and Dom Events are all well and good for method-to-method functionality. It is a really common use case to connect some event happening to call another function, but when you get into really ambiguous, large applications, you need some mechanism to just say “hey, something has happened, act accordingly” … dojo.publish and dojo.subscribe provide just that mechanism.

Read the rest of this entry »

Read more

Overriding themes

Dojo comes with awesome themes, all ready to be used out of the box.
Unfortunately sometimes it happens that you want to change one little thing, say the font size of your accordion pane.
Read the rest of this entry »

Read more

Mucking Dijit

Ever so often I want Dijit to behave just slightly different than the defaults, or need
to shim some added checks or setup to existing methods in the dijit. There are three really rapid ways to easily customize the Dijit code, each with different results and different use cases. Enter dojo.extend, dojo.mixin, and dojo.declare.

Read the rest of this entry »

Read more

Animation callbacks

Dojo Animations provide a really simple way to listen to internal events, and fire custom code at various points during (or before) an animation. Its simplicity is what makes it really quite powerful.

Read the rest of this entry »