Skip to main content
cngx-src documentation

CNGX_FILTER_EDITORS

Tokenv0.1.0

InjectionToken<ReadonlyMap<string, CngxFilterEditor>>

Description#

Registry mapping each editor type to the component (or native sentinel) that renders an expression's value. The single override surface for value editors - swap one or more by providing a new map:

providers: [
  { provide: CNGX_FILTER_EDITORS, useValue: new Map([...builtins, ['color', MyColorEditor]]) },
]

Provide at environment, route, or component level. The default factory builds a fresh map covering the four builtin entries (string / number / date / boolean -> native sentinels).

Orthogonal to the config cascade: provideFilterBuilderConfig does NOT touch editor resolution - editors live on this token alone.

Type#

InjectionToken<ReadonlyMap<string, CngxFilterEditor>>

Provided in#

'root'