Show contents 

Working with Trees > Classes > TreeList > TreeList.deleteNode

TreeList.deleteNode

Syntax

deleteNode(node: PP.Ui.TreeNode);

Parameters

node. Deleted node.

Description

The deleteNode method deletes a hierarchical tree node.

Example

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:

TreeList