Skip to main content
cngx-src documentation

CngxSelectShellSearchHost

Interface

projects/forms/select/declarative/select-search-host.ts

Referenced by#

Import#

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

Description#

Pull-based contract for a select-shell host so a projected <cngx-select-search> reads and writes the search term and forwards navigation keys into the listbox AD without ancestor injection of the concrete shell class.

  • searchTerm - ModelSignal<string>. Empty disables the filter.
  • listboxRef - read-only signal to the listbox; used by the search element to forward ArrowUp/Down, Enter, Home, End, Escape while focus stays in the input.
  • close() - closes panel and returns focus to the trigger (Escape path).

Index#

Instance Properties#

listboxRef#Signal
Readonly
searchTerm#ModelSignal
Readonly

Methods#

close#void
focus#void