WTUI Docs

WTUI  1.0.0

WTUI Docs > WTUI > WTUI.Tree
Search:
 
Filters

Class WTUI.Tree

A Tree

Tag

<wtui:tree/>

The tag for creating a tree
Parameters:
root <String> The path to the root of the tree

Methods

getRootNode

WTUI.TreeNode getRootNode ( )
Get the root of the tree
Returns: WTUI.TreeNode
A WTUI.TreeNode object

getSelectedNode

void getSelectedNode ( )

Get the selected node, return null if no node selected

Returns: void

Events

load

load ( )
This event is fired when the root node's children are loaded

loadchildren

loadchildren ( node )
This event is fired just before a node's children are loaded
Parameters:
node <WTUI.TreeNode> The node who's children are bring loaded

selectnode

selectnode ( node )
This event is fired when a node is selected
Parameters:
node <WTUI.TreeNode> The node that was selected

WTUI