XUL Programmer's Reference Manual

<treecol>
Attributes Common Children
id  
fixed  
height  
width  

 

<treecol> is a way of grouping together treecells that are lined up vertically in the tree widget. Typically the child nodes of a tree are defined row by row, and the actual column is implicit in the vertical positioning of these items. In XUL as in HTML4.0, you can use the <treecol> node to explicityly define a column of treecells, which can then be styled and otherwise manipulated as a group:
<tree>
  flex="1" class="inset">
  <treecol style="width: 30%" />
  <treecol style="width: 70%" />
  <treehead>
    <treerow>
   	<treecell value="Name" />
   	<treecell value="URL" />
    </treerow>
  </treehead>

  <treechildren>
    <treeitem>
   	<treerow>
    	  <treecell value="Slashdot" />
    	  <treecell value="http://www.slashdot.org" />
   	</treerow>

	<treerow>
	  <treecell value="XML.com" />
	  <treecell value="http://www.xml.com" />
	</treerow>
    </treeitem>
	
    <treeitem>	
       <treerow>
    	  <treecell value="JavaScript FAQT" />
    	  <treecell value="http://www.faqts.com/
           knowledge-base/index.phtml/fid/53/" />
   	</treerow>
    </treeitem>
 </treechildren>
</tree>

The two <treecol> elements in the example above define the two columns into which all the treeitems in the table line up. Note that the top two rows are defined within a single <treeitem> element, which means that they are selected and unselected as a single unit. For more information about the structure of trees, see <tree>.
 
 
 

 

fixed

Description

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

Syntax

<treecol fixed="true | false" />

Example

<>

Notes

The default value for the fixed attribute is "false".


 


 
 

Last updated: 4/12/00 Ian Oeschger