Posts Tagged ‘Dijit’

Read more

Interning Strings Everywhere in your Dojo Build

Dojo has a build system that does a lot of neat stuff. Let’s investigate.
Read the rest of this entry »

Read more

The dojo parser.

Dojo has a HTML parsing function that reads the custom dojoType=”" attribute, and turns the node in some class instance. It’s really cool, and really fast, and briefly, I am going to explain some of it, and it’s uses.

Read the rest of this entry »

Read more

DOM nodes vs. Dojo widgets (dojo.byId vs. dijit.byId)

The headline pretty much reveals the secret. But let’s dive into the details anyway.
This cookie will try to explain the differences between dojo.byId(), dijit.byId(), dijit.byNode() and dijit.getEnclosingWidget(). And when you should use what and what you should expect them to return and where you can use them.
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

Rounded tabs with dijit Theming

Everybody likes rounded buttons, rounded page elements and last but not least, rounded tabs. Fortunately dijit comes with great theming possibilities, so I will show you how you can make your own fancy rounded tabs using a simple image sprite and a couple of CSS classes.
Read the rest of this entry »