Skip to Content
API ReferenceTreeViewNode

TreeViewNode

A single node in a TreeView hierarchy. A node with no children is a leaf; a node with children can be expanded or collapsed.

Constructor

TreeViewNode

Creates a TreeViewNode.

ParameterDescription
labelThe display label. Must not be null.
childrenChild nodes. Null is treated as empty.
iconOptional icon string shown before the label.
initiallyExpandedWhether the node starts expanded.

Properties

Children

The child nodes nested beneath this node. Empty means leaf.

HasChildren

Whether this node has any children.

Icon

An optional icon character or short string shown before the label.

InitiallyExpanded

Whether this node starts expanded on first mount. Defaults to false.

Label

The label displayed for this node.

Last updated on