TreeListBase.moveNode

Syntax

moveNode(nodeKey, parent, index);

Parameters

nodeKey. String. Node key

parent. String. Parent node key, where move is executed.

index. String. New node index.

Description

The moveNode method moves the specified node.

Example

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

// Move node
Tree.moveNode(1, 2);

After executing the example the second node is moved to the new parent.

See also:

TreeListBase