Posts Tagged ‘Dijit’

Read more

Declarative vs Programatic

The Dijit widget system expands on “Core Dojo” by providing rich, accessible and internationalized reusable components. Dojo has always had a custom declarative way of turning vanilla DOM nodes into complex widgets, but this is entirely optional, and likely faster to avoid.

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 »

Read more

Hacking TabContainer: setTitle extension

A piece of functionality lost in the 0.4 -> 1.x transition of Dojo was the ability to set the Title of a tab pane, based on on a reference to the ContentPane associated with it. It seems a really common an trivial task, but the ambiguity of StackContainer (the foundation of TabContainer) conflicts with what a “setTitle” method would really do on a child …

Read the rest of this entry »

Read more

Making a translatable login form

Today I’m going to show you how to use dojo’s built in translation system. For this example, I’m going to make a simple login form widget, that we can translate into both english and spanish (and other languages, if we choose). This form will also validate what the user puts into the form, and inject what the user inputted into the translated text itself.
Read the rest of this entry »

Read more

What is a _Widget

There has never been a more generic term than “widget”. As a teen in economics class our theoretical compaines sold widgets, and almost anything on earth without description falls into a “thinger” category … I’m here to give API stability to the word “widget”, and poke around the idea of “template” in Dojo. I will call it Dijit.

Read the rest of this entry »