WTUI Docs

WTUI  1.0.0

WTUI Docs > WTUI > WTUI.TreeNode
Search:
 
Filters

Class WTUI.TreeNode

A Tree Node

Tag

Methods

getAttribute

String getAttribute ( name )
Get an attribute of the node
Parameters:
name <String> The name of the attribute to return
Returns: String
the value of the attribute

getChild

WTUI.TreeNode getChild ( index )
Get a child node by its index
Parameters:
index <Number> The index of the child
Returns: WTUI.TreeNode
The child node, or null if index is invalid

getChildCount

Number getChildCount ( )
Get the number of children of the node
Returns: Number
the value of the attribute

getDepth

Number getDepth ( )
Get the root of the tree
Returns: Number
The depth of the node

toggle

void toggle ( )
Toggle the state of a node
Returns: void

WTUI