TreeListBase.NodeData

Syntax

NodeData: Any;

Description

The NodeData property determines user data of the specified node.

Comments

User data is not used in internal implementation.

Use the setNodeData(nodeKey, value) method to set the property value, and the getNodeData(nodeKey) method to get the property value.

Parameters:

nodeKey. String. Node identifier

value. Any. Value.

Example

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

// Set user data 
Tree.setNodeData(0, "First node");

After executing the example a user string value is assigned to the node with the 0 index.

See also:

TreeListBase