<tree-collapse>

The <tree-collapse> element will collapse a currently expanded node in a tree control. Optionally, the element can specify the node to be collapsed, in which case the node will first be selected and then collapsed. If a node in the tree control is not specified, the currently selected node will be collapsed. If the node is currently collapsed, this element will have no affect. If the specified tree control node cannot be selected a script error will be thrown. Note that if a node in the tree control exists but is currently hidden because its parent or ancestor node is not expanded, the <tree-collapse> node will not be able to select the node.

Structure

Contains:
  • Text - The currently displayed value of the node to be collapsed.
Contained By:
  • <script>
Attributes
Name Description Data Type Default Value Required
common tree control attributes This element includes the following common tree control attributes:
  • label
  • node
  • sibling
  • child
N/A N/A N/A
common script attributes This element includes the following common script attributes:
  • timeout
  • sleep
N/A N/A N/A