XUL Programmer's Reference Manual

<treerow>
Attributes Common Children
id treecell
selectedRow  
observes  

 

<treerow> is the actual row in the tree structure. It is comparable to the <td> element in HTML tables. The following tags are roughly analogous to their HTML table counterparts.
 
Table Tree
table tree
caption treecaption
colgroup treecolgroup
col treecol
thead treehead
tbody treechildren, treeitem
tfoot treefoot
tr treerow
td treecell
Treehead and treechildren elements both have treerow as a child, which in turn defines <treecell> elements as children.
 

See <tree> for more information on tree structures.
 

selectedRow
Description
selectedRow is an optional attribute that specifies the current <treerow> as selected.
Syntax
<text selectedRow="[ true | false ]" />
Example
<text selectedRow="true" />
...
Notes

The <treerow> uses the selectedRow attribute instead of selected that's used on the <treeitem>. Similarly, the selectedCell is specialized for the <treecell> element. You can set these attributes programmatically using the DOM's setAttribute method, as in the following example:

 row1 = document.getElementById("thatTreeRow");
 row1.setAttribute("selectedRow", "true");
 
 
 

 

Last updated: 02/22/01 Ian Oeschger