Sets the value of the CSS class.
nullobj.setClass(name, value);
name (string) - class name
value (string or function) - class value
Calling setClass(name, value) will assign the CSS class aw-name-value which can be referred in stylesheet via
.aw-name-value {
...
}
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.setClass("state", function(){
return this.getControlProperty("state");
});
getClass() method