TreeListBase.getAllExpandedNodes

Syntax

getAllExpandedNodes(value);

Parameters

value. Boolean. Searched node expander status. If the value is true, the method returns nodes with expanded expander, if the value is false, the method returns nodes with collapsed expanded or without expander.

Description

The getAllExpandedNodes method returns array of nodes depending on the expander status.

Example

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

// Expand first node
Tree.setNodeExpanded(0, true);
// Get nodes with collapsed expander
Tree.getAllExpandedNodes(false);
// -> ["1", "2", "4", "5", "6", "key3", ""]

After executing the example the console displays keys of collapsed nodes.

See also:

TreeListBase