← Typeahead API

Interface · v2.7.1

NgbTypeaheadItem

An option with a stable ID, display label, optional form value and disabled state.

Import

import type { NgbTypeaheadItem } from '@angular-bootstrap/ngbootstrap';

Declaration

Properties

id

Stable string or numeric identifier. Required for selection and rendering.

id: string | number

label

Text displayed and searched by local filtering.

label: string

value

Optional Angular form value. If undefined, the selected item object becomes the form value.

value?: any

disabled

Disables selection of this option.

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.