XUL Programmer's Reference Manual

<treechildren>
Attributes Common Children
id treeitem
open  
The <treechildren> element is one of the major containers in a tree widget, typically sitting just under the main <tree> element. Treechildren is the parent of elements that actually appear in the tree (as opposed to <treehead>, which normally contains non-visible elements).
 

 

open

Description

The open attribute specifies whether a given treechildren element is expanded or compacted.

Syntax

<treechildren open="true | false" />

Example

<tree>
  <treeheader></treeheader>
  <treechildren id="Main" open="true" />
     <treeitem ...
  </treechildren>
</tree>

Notes

You can persist the open attribute of a treechildren element in order to preserve the state of a treechildren when the application is closed.

 


 
 
 

Last updated: 13:10 1/26/00 Ian Oeschger