Is there a way to set data-dojo-type and data-dojo-props programmatically?
For example,
HTML:
<div id='example'>Hello world</div>
Javascript:
domAttr.set(dom.byId('example'), 'data-dojo-type', 'dijit.InlineEditBox');
domAttr.set(dom.byId('example'), 'data-dojo-props',
"editor:'dijit.form.TextBox'");
Thanks
-Bill
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/set-data-dojo-type-and-data-dojo-props-programmatically-tp3710647p3710647.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation
Dojo-i...@mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest
var mydiv = document.getElementById('ie');
mydiv.setAttribute("data-dojo-type", "dijit.InlineEditBox");
mydiv.setAttribute("data-dojo-props", "editor:'dijit.form.TextBox'");
but it does not work.
Thanks
-Bill
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/set-data-dojo-type-and-data-dojo-props-programmatically-tp3710647p3710700.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
Thanks
-Bill
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/set-data-dojo-type-and-data-dojo-props-programmatically-tp3710647p3710730.html
1) are you requiring the proper widget files?
2) are you manually running the parser, relying on parseOnLoad:true or
some other magic?
-Karl Tiedt
Anything more I need to pay attention to.
-Bill
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/set-data-dojo-type-and-data-dojo-props-programmatically-tp3710647p3710756.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
Thank you so much, Karl and Kitson!
-Bill
--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/set-data-dojo-type-and-data-dojo-props-programmatically-tp3710647p3710795.html