TreeListView.scrollToPosition

Syntax

scrollToPosition(position, bottom);

Parameters

position. Number. Node number.

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 scrollToPosition method scrolls tree to the mode by number.

Example

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

// Scroll tree to the first node in the list
Tree.scrollToPosition(0, 1)

After executing the example the tree is scrolled to the first node in the list.

See also:

TreeListView