[dojo-contributors] dojox.help (or something)
Neil Roberts
neil at onebahamas.com
Mon Mar 10 00:13:49 UTC 2008
So thanks to one of the recent cookies posted over on the Dojo Campus (http://dojocampus.org/content/?p=62
), I was motivated to create a little demo this afternoon.
Feel free to hit up any of the pages in my directory to test this out,
but I've been working from: http://dojotoolkit.org/~pottedmeat/dojox/dtl/demos/demo_HtmlTemplated.html
because I like that page and it gives a lot of objects to look at.
This all is assuming you're working in the Firebug console.
Type dojo.require("dojox.help") in the console to get things started.
I did 2 things:
First of all, if you simply type the name of a function in the Firebug
console, it will give you the proper name when outputting the
function. It will also load the parameter information. Right now, I'm
not able to load the parameter information synchronously, so if you
wait a second and type the function name again, it will have type
information, etc.
Secondly, everything now has a "help" function. So you can do
dojo.byId.help() or dijit._Widget.attributeMap.help() and it will
print out a lot of information on the object in the console.
It would be nice to get this into DojoX somewhere, figured I'd show
the demo before we talk about that though.
-Neil
More information about the dojo-contributors
mailing list