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.
alternatingbackground
Obsolete since Gecko 2.0true
, the background of the tree
's rows will alternate between two colors. You can use the :-moz-tree-row
CSS style to do this instead.Inherited from XUL element |
Inherited Properties |
<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>
tree
, treecols
, treecol
, treeitem
, treerow
, treecell
and treeseparator
.