dojo - Append to widget style -
if style has been specified on widget, example mywidget.style.witdh = "100%", append more inline style later , tack on after width example? want add display: inline-block or whatever else after width: 100%;
all of can done on widget's domnode property using standard dojo.style/domstyle.set methods.
for example:
require(['my/widget','dojo/dom-style'],function(widget,domstyle){ var widget = new widget({},mynode); widget.startup(); domstyle.set(widget.domnode,'display','inline-block'); }); the dojo/dom-style documentation has many reference cases how can use it.
Comments
Post a Comment