getNodeByPosition(index);
index. Number. Node number.
The getNodeByPosition method returns key of the node by its number.
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: