| |
|
|
|
 |
Home NewsBlogProducts Download Buy Now Documentation Support |
 |
 |
|
|
 |
| |


Contents
|
10. Tomahawk Tag Reference
Contents > Tomahawk Tag Reference > t:tree
t:tree |
|
The t:tree tag is a tree data component. This component generates a fully customizable tree in HTML.
Example:
<t:tree></t:tree>
|
Tag Attributes
| columnClasses |
String |
| |
The columnClasses attribute accepts a comma-delimited list of CSS style classes that will be applied to the columns of the table. Style classes for an individual column may also be defined in a space separated list. A style class is applied to a table column as the value for the class attribute of rendered td or th element.
The algorithm used to apply the CSS style classes to the table columns is simple. In the table rendering process, style classes are applied to columns one at a time until (a) there are no more columns to display or (b) there are no more style classes to apply.
- If (a) happens at the same time as (b), the next row in the table is rendered.
- If (a) happens before (b), the remaining style classes are ignored.
- If (b) happens before (a), the remaining columns will not have style classes.
|
| expandRoot |
String |
| |
| The expandRoot attribute expects a boolean value that, when true, causes the root node of the tree to be expanded. |
| expireListeners |
String |
| |
| The expireListeners attribute expects a numeric value that indicates the duration of time in milliseconds that the tree will remain registered as a TreeModelListener since it was last accessed. |
| iconChildFirst |
String |
| |
| The iconChildFirst attribute defines the icon used to represent the first child node in a branch of the tree. |
| iconChildLast |
String |
| |
| The iconChildLast attribute defines the icon used to represent the last child node in a branch of the tree. |
| iconChildMiddle |
String |
| |
| The iconChildMiddle attribute defines the icon used to represent a middle child node in a branch of the tree. |
| iconClass |
String |
| |
| The iconClass attribute defines the CSS class to be applied to icons in the tree. |
| iconLine |
String |
| |
| The iconLine attribute defines the icon used to represent a line in the tree. |
| iconNodeClose |
String |
| |
| The iconNodeClose attribute defines the icon used to represent a closed node in the tree. |
| iconNodeCloseFirst |
String |
| |
| The iconNodeCloseFirst attribute defines the icon used to represent the first closed node in a branch of the tree. |
| iconNodeCloseLast |
String |
| |
| The iconNodeCloseLast attribute defines the icon used to represent the last closed node in a branch of the tree. |
| iconNodeCloseMiddle |
String |
| |
| The iconNodeCloseMiddle attribute defines the icon used to represent a closed middle node in a branch of the tree. |
| iconNodeOpen |
String |
| |
| The iconNodeOpen attribute defines the icon used to represent an open node in a branch of the tree. |
| iconNodeOpenFirst |
String |
| |
| The iconNodeOpenFirst attribute defines the icon used to represent the first open node in a branch of the tree. |
| iconNodeOpenLast |
String |
| |
| The iconNodeOpenLast attribute defines the icon used to represent the last open node in a branch of the tree. |
| iconNodeOpenMiddle |
String |
| |
| The iconNodeOpenMiddle attribute defines the icon used to represent an open middle node in a branch of the tree. |
| iconNoline |
String |
| |
| The iconNoline attribute defines the icon used to represent the absence of a line in the tree. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| nodeClass |
String |
| |
| The nodeClass attribute defines the CSS class to be applied to nodes in the tree. |
| rowClasses |
String |
| |
The rowClasses attribute accepts a comma-delimited list of CSS style classes to be applied to the rows of the table.
Style classes for an individual row may also be defined in a space separated list. A style class is applied to a table row as the value for the class attribute of rendered tr element.
Style classes are applied to rows in the same order that they are defined. For example, if there are two style classes, the first is applied to the first row, the second is applied to the second row, the first is applied to the third row, the second is applied to the fourth row, and so on. The list of styles is looped over from the beginning until there are no more rows to display.
|
| selectedNodeClass |
String |
| |
| The selectedNodeClass attribute defines the CSS class to be applied to selected nodes in the tree. |
| styleClass |
String |
| |
| The styleClass attribute sets the CSS class to apply to this component when it is rendered. |
| value |
String |
| Required |
| The value attribute sets the current value for this component. |
| var |
String |
| |
| The var attribute sets the name of a request-scope attribute exposing the data for each iteration over the rows in the underlying data model for this table. |
|
|
|
| |
|