Dojo IconClass Reference

It is amazing how bad some things are documented and how many people are struggling to find the right information.

I have been doing some dojo coding recently and used some javascript code to dynamically create buttons with little icons. How to do it is described here on the dojocampus site. There is an example showing how to set the inconClass attribute to display an icon in the button, in this case a little scissor symbol; the icon class for this is called "dijitEditorIcon dijitEditorIconCut".

The next natural question would be: what other icon classes are available ? One sort of question where you start googling without ever finding a sophisticated answer to your question. You would expect to bump into some reference somewhere listing all those possible icon classes, but nada – nothing. Instead you find a lot of discussion threads where people discuss the very same issue, like for instance here and here. In the latter you read somewhere that all icons are available in /dojo-src/dijit/themes/tundra/images/editor.gif; this gets you part of the answer, at least you can see what icons are available, but you don’t get their class names.

After doing some more investigation I found all those class names actually listed in /dojo-src/dijit/themes/tundra/editor.css.

Thus I wrote a little dojo javascript to create such a reference I hope others find helpful in the future if they bump into the very same question: What Dojo IconClasses are available to create icon buttons ?


11 Responses to “Dojo IconClass Reference”

  1. Matt Says:

    Thanks Axel – this is exactly the reference I’ve been trying to find! 🙂

  2. amagard Says:

    You are welcome, Matt ! I knew I wouldn’t be the only one looking for this 😉

  3. jonathan Says:

    thanks!!! a lot… really… i was looking for this too… regards!! 😀

  4. Ray Says:

    Thank you very much!i was looking for this!!

  5. Muthu Says:

    Rightly Said. Framework creators cannot wiki out everything their users need. Community needs to serve itself based on its needs. Thanks Axel.

  6. amagard Says:

    Thanks, dojocoder, for pointing that out. Hostcell turned out to be a quiet unreliable free hosting service and thus I moved over to x10Hosting. I updated my link in the posting above.

  7. Leo Says:


  8. wagnermarques Says:

    many thanks!!!

  9. vaishu Says:

    Hey the link says the account is expire can some give details regrding The icon classes

  10. amagard Says:

    Hi Vaishu, my account where I host that script expired during my vacation. Now it should be back online after I re-newed my account.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: