← Tree API

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 NgbTreeNode

Properties

id

Stable unique ID used for rendering identity.

id: string

label

Visible node text and part of accessible action labels.

label: string

children

Nested nodes. An empty or missing array makes this a leaf.

children?: NgbTreeNode[]

expanded

Whether children are visible. Missing is treated as false.

expanded?: boolean

selected

Whether this node is selected. Missing is treated as false.

selected?: boolean

disabled

Disables this node’s checkbox; branch expansion is still available.

disabled?: boolean
Source: types/angular-bootstrap-ngbootstrap.d.ts in the installed @angular-bootstrap/ngbootstrap package. Angular compiler metadata and private members are omitted.

This project is not affiliated with ng-bootstrap or ngx-bootstrap. Those projects focus mainly on Bootstrap components for Angular. ngbootstrap focuses on Angular UI for data-heavy apps, especially Data Grid, Angular-native Form Builder, drag and drop workflows, documentation examples, and performance-focused Angular patterns.