TreeList.getNodeLevel

Syntax

getNodeLevel (node: PP.Ui.TreeNode);

Parameters

node. Node, level of which is returned.

Description

The getNodeLevel method determines level that contains a specified node.

Example

To execute this example, the page must contain the TreeList component named treeListSett (see an example of the TreeList.NodeUnHovered event). Return level of a focused node and select all nodes in this level:

node = treeList.getFocusedNode();

level = treeListSett.getNodeLevel(node);

treeList.selectLevel(level);

After executing the example selects all elements of the level that contains the focused node.

See also:

TreeList