TreeListView.scrollToNode

Syntax

scrollToNode(node, bottom);

Parameters

node. String. Node key

bottom. Number| Boolean. Node position in visible tree area. on the values 0 | false - the node is on top. On the value 1 | true - the node is on bottom. On between values the node is in the corresponding position.

Description

The scrollToNode method scrolls tree to the node by key.

Example

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

// Scroll tree to the node with the 0 key
Tree.scrollToNode(0, 1)

After executing the example the tree is scrolled to the node with the 0 key.

See also:

TreeListView