Node

This section describes fields and methods that can be used in code to manipulate a Node object.

Node objects are accessible within certain event handlers, for example, onNodesInitialized, onNodesRendering, etc. Also, you can obtain these objects using the getRootNode() and getCurrentNode() methods.

Fields

This section describes fields that can be used in code to manipulate a Node object.

Methods

This section describes methods that can be used in code to manipulate a Node object.

Name Description
customize(options)

Customizes the node.

drillDown()

Drills down into the node.

getAllChildren()

Returns all nodes nested in the current node.

getAllNodes()

Returns all descendant nodes.

getChild(index)

Gets a specific node from a collection of direct descendants.

getChildrenCount()

Indicates how many direct descendants the current node has.

getParent()

Returns the parent node of the current node.

isActive()

Indicates whether the current node is active.

isHovered()

Indicates whether the node is in the hover state or not.

isLeaf()

Indicates whether the node is visualized by a tile or a group of tiles.

isSelected()

Indicates whether the node is selected or not.

label()

Returns the label of the node.

label(label)

Sets the label to the node.

resetCustomization()

Reverts the appearance of the node to the initial state.

select(state)

Sets the selection state of a node.

showTooltip()

Shows the tooltip.

value()

Gets the raw value of the node.