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.
| Parameter | Description |
|---|---|
label | The display label. Must not be null. |
children | Child nodes. Null is treated as empty. |
icon | Optional icon string shown before the label. |
initiallyExpanded | Whether 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