XUL Programmer's Reference Manual

<treecell>
Attributes Common Children
id * * *
align  
crop  
indent  
value  

 

<treecell> is the atomic unit in a tree structure; it is equivalent to the <td> element in an HTML table.
 

 

crop

Description

crop an optional attribute for specifying which part of a treecell's text, if any, will be cropped if it is too large.

Syntax

<treecell crop="left | right | none | center" />

Example

<treecell value="list_item2" crop="none" />

Notes

The default value for the crop attribute is "none".

 

indent

Description

indent is an optional attribute that specifies whether a given treecell is indented or not.

Syntax

<treeitem indent="true | false" />

Example

<treecell value="list_item2" indent="false" />

Notes

The default value for the container attribute is "false".

 

value

Description

value is an optional attribute that provides the text label for the cell.

Syntax

<treecell value="text label" >

Example

<treecell value="Favorite Web Sites" >

Notes

Many elements' value attributes are required. But unlike some elements, <treecell> has both a value attribute and content (i.e., the <treecell></treecell> tags surround some content). When no value is specified for value, the tree cell's content is used directly. For example, the following element appears in a tree as "Helpful Links":

<treecell id="helpful">Helpful Links</treecell>

 


 
 

Last updated: 13:10 1/26/00 Ian Oeschger