Posts Tagged ‘dojo.declare’

Read more

A hidden gem of Dojo.declare - overcoming the limits of multiple inheritance

One of the greatest things of dojo.declare is that it simulates one of the core elements of OO - inheritance. Moreover, it allows having several parents to the same object.

Read the rest of this entry »

Read more

dojo.declare secrets

A very short tuesday morning cookie for the ones who have been starving ;)

When using dojo.declare to build your own fancy widget there is one thing (besides others) you should keep in mind:
Arrays and objects as member variables are stored as references and not copies.
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

Understanding dojo.declare, dojo.require, and dojo.provide

Dojo is a great toolkit, which gives us many helpful utilities. On of the things that I really like about it is how it provides a more understandable layer of organization and packaging above what JavaScript normally provides.
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 »