TreeList.setExpandedForNode

Syntax

deleteNode(node: PP.Ui.TreeNode, value: Boolean);

Parameters

node. Node that contains children node visibility to change;

value. Node openness value to pass. If parameter value is true then node expands, if it is false then node collapses.

Description

The setExpandedForNode method expands or collapses the node depending on the passed value.

Example

To execute the example, the page must contain the TreeList component named treeListSett (seebsp;. Example of Creating the TreeList Component). Expand root node with the 0 index:

// Expand root node with the 0 index
treeListSett.setExpandedForNode(treeList.getNodes().getItem(0), true);

As a result, root node with the 0 index is expanded:

See also:

TreeList