:: Documentation >>

setContent

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.

null

Syntax

obj.setContent(name, value);

Parameters

name (string) - content name
value (object, string or function) - content value

Example

obj.setContent("text", "some text");

Remarks

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");
});

See also

getContent() method

Comments

Multiple Cells in a Table Row Martin (1)
Input getting renamed??? Jim Hunter (www.FriendsOfAW.com) (2)

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5