Adds or changes child content.
If the content with this name already exists it will be replaced with a new value. Otherwise it is added after the last content element.
nullobj.setContent(name, value);
name (string) - content name
value (object, string or function) - content value
obj.setContent("text", "some text");
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.setContent("text", function(){
return this.getControlProperty("text");
});
getContent() method