TreeListBase.NodeChildrenCount

Syntax

NodeChildrenCount: Number;

Description

The NodeChildrenCount property determines the number of specified node children.

Comments

Use JSON or the setNodeChildrenCount(nodeKey, value) method to set the property value and the getNodeChildrenCount(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. Number. Value.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Determine the number of children of the node with the 0 index
Tree.getNodeChildrenCount(0);
// -> 3

After executing the example the number of children of the node with the 0 index is displayed.

See also:

TreeListBase