<netui:treeItem> Tag

Adds a tree node to the parent node (either a <netui:tree> or another <netui:treeItem>).

Syntax

<netui:treeItem
    [action="action"]
    [clientAction="clientAction"]
    [disabled="disabled"]
    [expandOnServer="expandOnServer"]
    [expanded="expanded"]
    [href="href"]
    [icon="icon"]
    [scope="scope"]
    [tagId="tagId"]
    [target="target"]
    [title="title"] />

Description

Adds a tree node to the parent node (either a <netui:tree> or another <netui:treeItem>).

Attributes
action
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

The action to invoke when this tree node is clicked.
clientAction
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Sets an action to run on the client when the tree node is selected.
disabled
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Boolean. Determines if the tree node is enabled or disabled.
expandOnServer
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

If this attribute is true and runAtClient is also true, then an expansion on this node will cause that to happen on the server. When runAtClient is false, all expansions will happen on the server.
expanded
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Sets the expanded/collapsed state of the tree node.
href
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

The href attribute of the node's link.
icon
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

The icon URI.
scope
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Set the target scope for this tree node's URI. Any page flow that handles the URI will be made active within the given scope. Scopes allow multiple page flows to be active within the same user session; page flows in different scopes do not in general interact with each other. This attribute is commonly used in conjunction with the target attribute to invoke a new page flow in a separate window.
tagId
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Sets of the id attribute of the tree node
target
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

Sets the window target of the node's link.
title
Required: No  |   Supports runtime evaluation: Yes  |   Data bindable: Yes

The node's title

 
Example

In this first sample, a TreeItem contained by a parent TreeItem or Tree will display with the label of "Login" and, when clicked, will navigate to the Login pageflow.

<netui:treeItem label="Login" action="/netui/login/Login.jpf" />

In this next sample, a TreeItem contained by a parent TreeItem or Tree will display with the label of "Human Resources" and icon "folder16.gif" and most likely will have child TreeItem tags because it does not have an action and starts expanded.

<netui:treeItem label="Human Resources" icon="folder16.gif" expanded="true">

Related Topics

<netui:tree> Tag

TreeElement