collapseAll();
The collapseAll method hides a list of the node child elements.
To execute the example, the page must contain the TreeList component named treeListSett (seebsp; Example of Creating the TreeList Component). Expand the list of the node children with the Africa contents.
var nodeAfrica = treeListSett.find("Africa"); // Expand the list of the node children with the Africa contents. nodeAfrica.expandAll();
As a result node children with the Africa contents are expanded:
Select all node children with the Africa contents:
// Select all node children with the Africa contents nodeAfrica.selectChild();
As a result all node children with the Africa contents are selected:
Deselect all node children with the Africa contents:
// Deselect all node children with the Africa contents nodeAfrica.deSelectChild();
As a result all node children with the Africa contents are deselected.
Hide node children with the Africa contents.
// Hide node children with the Africa contents nodeAfrica.collapseAll();
As a result node children with the Africa contents are hidden.
See also: