setExpandedForNodes(nodes, value, fireEvents, ignoreRules);
nodes. Array of String. Array of node keys.
value. Boolean. Set value.
fireEvents. Boolean. Generate event on value changed. By default it is set to true.
ignoreRules. Boolean. Ignore rules. By default it is set to false.
The setExpandedForNodes method sets expander values to array of nodes.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Expand specified nodes Tree.setExpandedForNodes([0, 1], true);
After executing the example specified nodes are expanded.
See also: