TreeListBase.getNodeByPosition

Syntax

getNodeByPosition(index);

Parameters

index. Number. Node number.

Description

The getNodeByPosition method returns key of the node by its number.

Example

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

// Get key of the third node
Tree.getNodeByPosition(3);
// -> "key3"

After executing the example key of the third node is obtained.

See also:

TreeListBase