<netui:treeHtmlAttribute> Tag

Set an attribute on the tree.

Syntax

<netui:treeHtmlAttribute
    [applyToDescendents="applyToDescendents"]
    attribute="attribute"
    [onDiv="onDiv"]
    [onIcon="onIcon"]
    [onSelectionLink="onSelectionLink"]
    value="value" />

Description

Set an attribute on the tree.

Attributes
applyToDescendents
Required: No  |   Supports runtime evaluation / JSP Expression Language: No

Apply the attribute to descendents of this node.
attribute
Required: Yes  |   Supports runtime evaluation / JSP Expression Language: No

Sets the name of the attribute. This must be in the proper HTML Attribute form. For example, "onmouseclick" or "href".
onDiv
Required: No  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the item <div>.
onIcon
Required: No  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the icon
onSelectionLink
Required: No  |   Supports runtime evaluation / JSP Expression Language: No

Set the attribute value on the link around the icon.
value
Required: Yes  |   Supports runtime evaluation / JSP Expression Language: No

Sets the HTML attribute value.

 
Example

The following example shows a <netui:tree> tag with both a child <netui:treeLabel> and <netui:treeHtmlAttribute> tag that form the label for the root folder of the tree. The <netui:treeHtmlAttribute> outputs the attribute name="A1" on the anchor element used for the selection link of the tree item.

    <netui:tree dataSource="pageFlow.myTree" selectionAction="postback" tagId="myTree">
        <netui:treeItem expanded="true" >
            <netui:treeLabel>Root Folder</netui:treeLabel>
              <netui:treeHtmlAttribute attribute="name" value="A1" onSelectionLink="true"/>
        </netui:treeItem>
    </netui:tree>

Related Topics

<netui:tree> Tag

TreeElement