TreeViewNode<T>
Tree view node. Sample: https://public.datagrok.ai/js/samples/ui/tree-view
Extended by
Type parameters
| Type parameter | Value |
|---|---|
T | any |
Constructors
new TreeViewNode()
new TreeViewNode<
T>(dart):TreeViewNode<T>
Parameters
| Parameter | Type |
|---|---|
dart | any |
Returns
TreeViewNode<T>
Constructs
from the Dart object
Source
Properties
| Property | Type |
|---|---|
dart | any |
Accessors
captionLabel
getcaptionLabel():HTMLElement
Caption label
Returns
HTMLElement
Source
checkBox
getcheckBox():null|HTMLElement
Check box element
Returns
null | HTMLElement
Source
checked
getchecked():boolean
Returns true if checked
setchecked(checked):void
Parameters
| Parameter | Type |
|---|---|
checked | boolean |
Returns
boolean
Source
icon
geticon():Element
Node icon
seticon(value):void
Parameters
| Parameter | Type |
|---|---|
value | Element |
Returns
Element
Source
onSelected
getonSelected():Observable<TreeViewNode<any>>
Occurs when the selected node is changed.
Returns
Observable <TreeViewNode<any>>
Source
parent
getparent():TreeViewNode<any>
Node's parent
Returns
TreeViewNode<any>
Source
root
getroot():HTMLElement
Visual root
Returns
HTMLElement
Source
rootNode
getrootNode():TreeViewGroup
Top-most node.
Returns
Source
tag
gettag():any
Auxiliary information associated with the node.
settag(t):void
Parameters
| Parameter | Type |
|---|---|
t | any |
Returns
any
Source
text
gettext():string
Node text
settext(value):void
Parameters
| Parameter | Type |
|---|---|
value | string |
Returns
string
Source
value
getvalue():T
Node value. Normally, when you click on the node, the context panel shows this object.
setvalue(v):void
Parameters
| Parameter | Type |
|---|---|
v | T |
Returns
T
Source
Methods
enableCheckBox()
enableCheckBox(
checked):void
Enables checkbox
Parameters
| Parameter | Type | Default value |
|---|---|---|
checked | boolean | false |
Returns
void
Source
remove()
remove():
void
Removes the node and its children from the parent
Returns
void