Home > Element Reference : Treeitem

Contents

### Treeitem

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.

In a template condition, you should use a treeitem instead of a content element when the 'dont-build-content' flag is specified. Set the uri attribute to the variable name to bind to a content node during matching.

More information about Treeitem

#### Attributes:

Attributes inherited from XUL Element

container

Set to true if the element is to act as a container which can have child elements. This would be used for folders. This will be set by the template builder as needed.

open

If true, the treeitem is open, allowing child elements to be displayed.

uri

Used to specify the variable name for the content in a template condition. When a rule is evaluated, it scans through each resource in the RDF datasource looking for a match. Each resource is placed in the variable specified in the uri attribute in turn. Then, the other rules are evaluated for a match.

#### Properties and Methods:

Properties and Methods inherited from XUL Element

Copyright (C) 1999 - 2002 XULPlanet.com