TreeListBase.getAllCheckedNodes

Syntax

getAllCheckedNodes(value);

Parameters

value. Boolean. Indicates whether searched node checkboxes are selected. If the value is True, the method returns nodes with selected checkboxes, if the value is False, the method returns nodes with deselected checkboxes.

Description

The getAllCheckedNodes method returns array of nodes depending on the checkbox status.

Example

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

// Select node checkboxes
Tree.setNodeChecked(1, true);
Tree.setNodeChecked(2, true);
// Get nodes with selected checkboxes
Tree.getAllCheckedNodes();
// -> ["1", "2"]

After executing the example the array of nodes with selected checkboxes is obtained.

See also:

TreeListBase