Skip to main content
cngx-src documentation

CngxFlatNavStrategy

Interface

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

Import#

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

Description#

Keyboard-nav policy for the flat select variants (single, multi, reorderable-multi): PageUp/PageDown via resolvePageJumpTarget and typeahead-while-closed via TypeaheadController.matchFromIndex. Combobox / typeahead / action variants delegate to CngxListboxSearch and don't consume this.

Index#

Methods#

onPageJump(ctx: CngxFlatNavContext<T>, direction: "1" | unknown)

PageUp/PageDown. Returns highlight with target or noop.

@paramdirection"1" | unknown
onTypeaheadWhileClosed#CngxFlatNavAction
onTypeaheadWhileClosed(ctx: CngxFlatNavContext<T>, char: string)

Printable key while panel is closed. Returns select or noop.

@paramcharstring