Thursday, October 31, 2013

Manipulate CSS styles in Dojo!

"Up top" we have...

define([
   "dojo/dom",
   "dojo/dom-style"
], function(dom, domStyle){

 
 

"Down below" we have...

var textarea = dom.byId("whatever");
domStyle.set(textarea, "width", "100%");
domStyle.set(textarea, "height", "300px");
textarea.innerHTML = text;

No comments:

Post a Comment