Pointer to the original data.
The value of the node's field that is used for displaying its content. By default 'name', unless stated otherwise in the options
Pointer to the ElementRef of the TreeNodeComponent that's displaying this node
A unique key of this node among its siblings. By default it's the 'id' of the original node, unless stated otherwise in options.idField
index of the node inside its parent's children
Level in the tree (starts from 1).
Parent node
Path in the tree: Array of IDs.
Blur (unfocus) the node
Collapses the node
collapse all nodes under this one
Invokes a method for every node under this one - depth first
a function that receives the node
Expands all ancestors of the node
Expands the node
expand all nodes under this one
Finds the visually next node in the tree.
whether to look for children or just siblings
next node.
whether to skip hidden nodes
next sibling (or null)
Finds the visually previous node in the tree.
whether to skip hidden nodes
previous node.
whether to skip hidden nodes
previous sibling (or null)
Fire an event to the renderer of the tree (if it was registered)
Focus on the node
in case nodeClass option is supplied, returns the current node's class
whether to skip hidden nodes
first child (or null)
whether to skip hidden nodes
last child (or null)
in case levelPadding option is supplied, returns the current node's padding
Hides the node
true if this node is a descendant of the parameter node
Scroll the screen to make the node visible
sets the node to be active and makes sure it's visible by expanding all nodes above it and scrolling it into view.
Very similar to calling activate
, ensureVisible
and scrollIntoView
methods.
If multi is true (default false) - does a multiselect.
sets the node to active / inactive according to the value. If multi is true (default false) - does a multiselect.
if true makes the node hidden, otherwise visible
Makes the node visible
Activates / Deactivates the node (selects / deselects)
Expands / Collapses the node
Generated using TypeDoc
The children of the node. By default is determined by 'node.data.children', unless stated otherwise in the options