Skip to main content
cngx-src documentation

filterSelectOptions

Functionforms/select/state

projects/forms/select/shared/option.model.ts

Description#

Filters by term using a listbox match fn. Preserves group shape; empty groups dropped. The matcher payload's id: '' is synthetic; real DOM ids come from CngxOption, and in-tree matchers ignore the field.

Signature#

filterSelectOptions(input: CngxSelectOptionsInput, term: string, match)

Parameters#

@paramtermstring
@parammatch

Returns#

CngxSelectOptionsInput