TreeListBase.clearNodes

Syntax

clearNodes();

Description

The clearNodes method clears all tree nodes.

Example

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

// Delete all tree nodes
Tree.clearNodes();

After executing the example all nodes are deleted.

See also:

TreeListBase