deleteNode(nodeKey);
nodeKey. String. Node key.
The deleteNode method deletes the specified tree node.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Delete the second node Tree.deleteNode(1)
After executing the example the second node is deleted.
See also: