[TAB] + Firebug, developers dreamteam
by Nikolai Onken

I was hanging around in the #dojo IRC channel two days ago and Wolfram Kriesing came up with a very useful nifty trick.

Update march 27th 2008: Thanks to a note of Mike Cordes, you need to uncheck following option if you want the tab trick to work: “Console > Options > Larger Command Line”. Thanks Mike for the update!

How often do you wonder “Does this dijit support one or another method?”, “What attributes does my tree have?”, “Can I do .setContent()?”.
If you use Firefox with Firebug all of your trouble will be gone within seconds:

Say you have created a dijit on your page with the id “fancyDijit”. Now if you want to find out what methods you can use or what attributes your object has, open up Firebug, go to the console and enter:

dijit.byId(’fancyDijit’). + [TAB]. and an object attribute will show up… wow. Now press [TAB] again and the next attribute will show up.
Of course you can also enter dijit.byId(’fancyDijit’).c + [TAB] and all attributes starting with “c” will show up.


This entry was posted on Thursday, February 21st, 2008 at 4:04 pm and is filed under Dojo Cookies. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

One Response to “[TAB] + Firebug, developers dreamteam”

  1. DojoCampus » Blog Archive » Find out a method’s signature on the Firebug console Says:

    [...] the pieces together, use the TAB key to find the right method you need and then inspect it using toString() and you are getting close to not leaving Firebug [...]

Leave a Reply

You must be logged in to post a comment.