TreeCheckBox is control used to represent tree structure with check box. TreeCheckBox contains collection of TreeCheckBoxNode object to represent each node.
Description | ||
new TreeCheckBox(params?srcNodeRef?) |
Create a new TreeCheckBox widget. |
Type | Description | |
_styleAttr | Object |
when you want to set style for other node. you can do this by example...
_styleAttr:{
|
nodes | Array |
Array of TreeCheckBoxNode Object which represent node in this tree. |
value | Array |
Array of value of all checked nodes. This property is read-only. |
viewMode | Boolean |
if true, all checkbox cannot be edited by user. |
Return type | Description | |
__baseClassInherit(constructor) | None |
get className from superclass. |
add(TreeCheckBoxNodeindex) | None |
add new node to tree at specific position. |
append(TreeCheckBoxNode) | None |
append node to this tree. |
checkAll() | None |
check all nodes in this tree. |
expandAll() | None |
expand all nodes and children in the tree. |
getCheckedNodes(recursive) | Array |
get array of checked nodes in this tree. |
getHalfCheckedNodes() | Array |
get array of halfchecked nodes in this tree. |
getNodes(recursive) | Array |
get array of nodes in this tree. |
getUncheckedNodes(recursive) | Array |
get array of unchecked nodes in this tree. |
remove(index) | None |
remove node from this tree. |
removeAll() | None |
remove all nodes from this tree. |
uncheckAll() | None |
uncheck all nodes in this tree. |
Description | ||
check (node, oldState) |
The event fires when node in tree is checked. |
|
collapse (node) |
The event fires when node in tree is collapse. |
|
expand (node) |
The event fires when node in tree is expand. |
|
halfcheck (node, oldState) |
The event fires when node in tree is halfchecked. |
|
uncheck (node, oldState) |
The event fires when node in tree is unchecked. |
when you want to set style for other node. you can do this by example...
_styleAttr:{
style-property
:effected-node
}
this property was effected where this class was inherited and your widget was called by...
var widget = new YourWidget({
style:{
style-property
:style-value
}
});
now effected-node
in you widget will have style-property
= style-value
Default value: {}
get className from superclass.
<Object>
constructor
|
Required |
|
add new node to tree at specific position.
<TreeCheckBoxNode Object>
TreeCheckBoxNode
|
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.
<TreeCheckBoxNode Object>
TreeCheckBoxNode
|
Required |
object you want to add to this tree. |
check all nodes in this tree.
expand all nodes and children in the tree.
get array of checked nodes in this tree.
<Boolean>
recursive
|
Required |
if false, return array will not contain child if parent is checked. |
get array of nodes in this tree.
<Boolean>
recursive
|
Required |
if false, return array will not contain child if parent is checked. |
get array of unchecked nodes in this tree.
<Boolean>
recursive
|
Required |
if false, return array will not contain child if parent is unchecked. |
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.
uncheck all nodes in this tree.
The event fires when node in tree is checked.
<TreeCheckBoxNode Object>
node
|
-tree node which is checked. |
<String>
oldState
|
-old state of tree node before checked. |
The event fires when node in tree is collapse.
<TreeCheckBoxNode Object>
node
|
-tree node which is collapsed. |
The event fires when node in tree is expand.
<TreeCheckBoxNode Object>
node
|
-tree node which is expanded. |
The event fires when node in tree is halfchecked.
<TreeCheckBoxNode Object>
node
|
-tree node which is halfchecked. |
<String>
oldState
|
-old state of tree node before halfchecked. |
The event fires when node in tree is unchecked.
<TreeCheckBoxNode Object>
node
|
-tree node which is unchecked. |
<String>
oldState
|
-old state of tree node before unchecked. |