Interface · v2.6.0
NgbTreeNode
A node in the tree, with optional children, expansion, selection and checkbox-disabled state.
Import
import type { NgbTreeNode } from '@angular-bootstrap/ngbootstrap';Declaration
interface NgbTreeNodeProperties
id
Stable unique ID used for rendering identity.
id: stringlabel
Visible node text and part of accessible action labels.
label: stringchildren
Nested nodes. An empty or missing array makes this a leaf.
children?: NgbTreeNode[]expanded
Whether children are visible. Missing is treated as false.
expanded?: booleanselected
Whether this node is selected. Missing is treated as false.
selected?: booleandisabled
Disables this node’s checkbox; branch expansion is still available.
disabled?: boolean