Angular TreeList Node

A TreeList node's structure.

Type:

Object

You can access nodes using the getRootNode() method and within some event handlers, for example, onNodesInitialized.

children

Contains all child nodes.

data

The node's data object.

Type:

Object

hasChildren

Indicates whether the node has child nodes.

Type:

Boolean

key

The node's key.

Type: any

For plain data, the value of the key depends on the keyExpr option. For hierarchical data, the key can be generated automatically or set in the underlying Store of the data source.

See Also

level

The node's hierarchical level.

Type:

Number

The level of the root node is -1. This node is not visualized and is used to access the full hierarchy of nodes. The root node's children have level 0, the children's children have level 1, and so forth.

parent

The parent node.

visible

Indicates whether the node is visualized as a row.

Type:

Boolean