:: Home >>

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.

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

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

Comments will appear on this page and in the main forum.

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