Posts Tagged ‘dojo.declare’

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 »

Read more

No end to rounded corners

No end to rounded corners

After the last tutorial on how to make fancy rounded tabs, I thought it might be interesting to take a look on how to make a widget which lets you transform a simple "div" into a nice looking one with rounded corners and flexible width/height, using just one image.
Read the rest of this entry »


Read more

Color by numbers: dojo.delegate

I wrote a fairly advanced article over at the SitePen blog on metaclass programming. But you shouldn't have to read through a long, technical article to find out about just one of the little gems mentioned in it. Sounds like the perfect time for a Dojo Campus cookie.

Read the rest of this entry »