A treeitem should be placed inside a treechildren element and should contain treerow elements. The treeitem can be clicked by the user to select the row of the tree. The treeitem contains a single row and all of what appear to the user as that row's descendants.
Attributes:
Attributes inherited from XUL Element
Determines the horizontal alignment of the children of the treeitem.
In the treeitem is placed inside a horizontally oriented box, autostretch determines whether the treeitem stretches vertically to fit the given space. For vertically oriented boxes, determines whether the treeitem stretches horizontally to fit the given space. Stetching in the opoosite direction is controlled with the flex attribute.
If true, then the treeitem is collapsed and does not appear. It is equavalent to setting the CSS visibility property to collapsed.
Set to true if the treeitem is to act as a container which can have child elements. This would be used for folders.
If the label of the treeitem is too small to fit in its given space, the text will be cropped on the side specified by the crop attribute. An ellipsis will be placed in place of the cropped text.
If true, extra borders are drawn around the element and all its descendants. This can be used to determine orientation and where flexible elements are. If debug mode is enabled for a box, horizontal oriented boxes are displayed with a blue border and vertical boxes are displayed with a red border. The border above the element will be straight for non-flexible elements and wavy for flexible elements.
Indicates the flexibility of the treeitem. Flexible elements grow and shrink to fit their given space. The actual value is not relevant unless there are other flexible elements with-in the same container. Elements with larger flex values will grow more than elements with lower flex values, at the ratio determined by the two elements.
The height of the treeitem in pixels. It is recommended to use the CSS height property instead.
For elements placed within a bulletinboard, specifies the position of the left edge of the treeitem.
If true, the treeitem is open, allowing child elements to be displayed.
Used to specify whether the children of the treeitem element are oriented horizontally or vertically.
Indicates whether the treeitem is selected or not.
For elements placed within a bulletinboard, specifies the position of the top edge of the treeitem.
Determines the vertical alignment of the children of the treeitem.
The width of the treeitem in pixels. It is recommended to use the CSS width property instead.
JavaScript Properties and Methods:
Properties and Methods inherited from XUL Element
Expands the item so that its child rows are visible.
Collapses the item so that its child rows are hidden.
Toggles the open state of the item. If the item is closed, it is expanded so that its child rows are visible. If the item is opened, it is collapsed so that its child rows are hidden.