The basic function of a Tree control.
Type | Description | |
nodes | Array |
Array of _TreeNodeBase Object which represent child of this node. |
value | Array |
Array of value of all nodes and it's children. This property is read-only. |
Return type | Description | |
add(_TreeNodeBaseindex) | None |
add new node to tree at specific position. |
append(_TreeNodeBase) | None |
append node to this tree. |
expandAll() | None |
expand all nodes and children in the tree. |
expandAll() | None |
collapse all nodes and children in the tree. |
remove(index) | None |
remove node from this tree. |
removeAll() | None |
remove all nodes from this tree. |
Description | ||
collapse (node) |
The event fires when node in tree is collapse. |
|
expand (node) |
The event fires when node in tree is expand. |
add new node to tree at specific position.
<_TreeNodeBase Object>
_TreeNodeBase
|
Required |
object you want to add to this tree. |
<Number>
index
|
Required |
position you want to locate this node (index start at 0). index = 0 means it will be the first node of this tree. |
append node to this tree.
<_TreeNodeBase Object>
_TreeNodeBase
|
Required |
object you want to add to this tree. |
expand all nodes and children in the tree.
collapse all nodes and children in the tree.
remove node from this tree.
<Index Number>
index
|
Required |
position of node you want to remove (index start at 0). index = 0 mean you want to remove first node in this tree. |
remove all nodes from this tree.
The event fires when node in tree is collapse.
<_TreeNodeBase Object>
node
|
-tree node which is collapsed. |
The event fires when node in tree is expand.
<_TreeNodeBase Object>
node
|
-tree node which is expanded. |