moveNode(nodeKey, parent, index);
nodeKey. String. Node key
parent. String. Parent node key, where move is executed.
index. String. New node index.
The moveNode method moves the specified node.
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: