Sets the value of the CSS style attribute.
nullobj.setStyle(name, value);
name (string) - style name
value (string or function) - style value
obj.setStyle("border", "2px solid red");
The value parameter can be a function, which will be called each time the html is generated (in toString() or refresh() methods), for example
obj.setStyle("color", function(){
return this.getControlProperty("color");
});
getStyle() method
If the style name contains "-" it will not be immediately updated on screen