Working with Trees > Classes > TreeList > TreeList.deleteNode
deleteNode(node: PP.Ui.TreeNode);
node. Deleted node.
The deleteNode method deletes a hierarchical tree node.
To execute the example, the page must contain the TreeList component named treeListSett (see Example of Creating the TreeList Component). Delete the node with the Algeria contents:
// Delete the element containing the Algeria text treeListSett.deleteNode(treeList.findText("Algeria"));
As the result, the node with the Algeria contents is deleted from the hierarchical tree:
See also: