Skip to main content
cngx-src documentation

CngxFlatNavContext

Interface

projects/forms/select/shared/flat-nav-strategy.ts

Import#

import { CngxFlatNavContext } from '@cngx/forms/select'

Description#

Context passed to every CngxFlatNavStrategy method. Variant builds it inside the keydown handler and dispatches the returned CngxFlatNavAction.

Index#

Instance Properties#

Readonly
currentFlatIndex#number
Readonly

Index inside options for typeahead round-robin. -1 = none.

currentListboxIndex#number
Readonly

Index inside listboxItems for page-jump clamping. -1 = none.

disabled#boolean
Readonly

Short-circuits every callback to noop when true.

listboxItems#unknown
Readonly

Items as seen by the AD directive - page-jump indices refer to THIS array, which may omit entries options contains (filtered combobox).

options#unknown
Readonly

Flat option list in listbox order. Variant's flatOptions.

typeaheadController#TypeaheadController
Readonly

Variant-owned controller; strategy only calls matchFromIndex.