Accessing Dom Attributes in Dojo Widgets -
i've defined widget in template, example:
i can't title text set programmatically. i've tried many things kinda pseudo thought of none work:
domstyle.set(this. , "display", '{ float: left }'); this.feetselectcontainer.display = "float: 'left'"; <div> <div data-dojo-attach-point="somedivcontainer1">....></div> </div>
it's saying this.somedivcontainer1 undefined..so tried changing id:
domstyle.set(this.somedivcontainer1.id, "display", '{ float: "left"}'); dojo.attr(dojo.byid("somedivcontainer1 "), "display", '{ float: "left"}');
don't know else try or how through dojo.
i think mixing 2 style attributes: display
, float
use
domstyle.set(this.somedivcontainer1, 'display', 'block');
or
domstyle.set(this.somedivcontainer1, 'float', 'left');
Comments
Post a Comment