Hi. I want to dynamically create dijit.TTooltip. How may I proceed on doing that?
I try to...
tip = new dijit.Tooltip();
tip.domNode = document.createElement('span');
tip.connectId = 'someid';
tip.postCreate();I figure that I am wrong. Any pointer in how to dynamically create dijit.Tooltip would be great. Thanks in advance!
-Al

in theory, this should
in theory, this should work:
var node = document.createElement('span');
node.innerHTML = "this is my popup content"
var tip = new dijit.Tooltip({ connectId:'someId' },node);
tip.startup();
thanks, what about other widgets?
thanks dante!
I was wondering how do I find out what kind of constructor does a certain type of widget have?
for example
new dijit.Tooltip({ connectId:'someId' },node);what if I want to create other widgets like dijit.Menu dynamically for example?
lastly, how do i destroy a widget like Tooltip? Thanks.
-Al
nm, i got it
so all widget uses similar constructor
and .destroy() is the method to destroy a widget, simple enough :)