This element is the body of the tree
. For content trees, the content will be placed inside this element. This element is also used to define container rows in the tree.
More information is available in the XUL tutorial.
- Attributes
- alternatingbackground
Attributes
-
alternatingbackground
Obsolete since Gecko 2.0 - Type: boolean
-
If
true
, the background of thetree
's rows will alternate between two colors. You can use the:-moz-tree-row
CSS style to do this instead.
Inherited from XUL element |
Properties
Inherited Properties |
Methods
Example
<tree flex="1"> <treecols> <treecol id="sender" label="Sender" flex="1"/> <treecol id="subject" label="Subject" flex="2"/> </treecols> <treechildren> <treeitem> <treerow> <treecell label="joe@somewhere.com"/> <treecell label="Top secret plans"/> </treerow> </treeitem> <treeitem> <treerow> <treecell label="mel@whereever.com"/> <treecell label="Let's do lunch"/> </treerow> </treeitem> </treechildren> </tree>