Skip to main content
cngx-src documentation

CngxFilterExpression

DirectivePrimaryv0.1.0WCAG AA

projects/forms/filter-builder/filter-builder-expression.directive.ts

Import#

import { CngxFilterExpression } from '@cngx/forms/filter-builder'

Description#

Context atom binding a FilterExpression node at the given path to the recursive template body. Injects the host through CNGX_FILTER_BUILDER_HOST (not the concrete presenter class) so the decompose schematic can eject the recursive body independently of the brain.

availableOperators resolves from the field def's own operators list when present, else from CNGX_FILTER_BUILDER_CONFIG.defaultOperators keyed by the field's editorType - consumers swap defaults at app or view scope via withDefaultOperators({...}).

Every object/array signal carries an explicit equal fn; empty-operator and missing-node fallbacks resolve to shared frozen singletons so no-op reads never allocate.

https://cngxjs.github.io/cngx/examples/#/forms/filter-builder/basic-two-way-binding-json-inspection https://cngxjs.github.io/cngx/examples/#/forms/filter-builder/seeded-tree-and-or-composition

Metadata#

Host#

Index#

Inputs#

path#readonly number[]
input()Required
default { alias: 'cngxFilterExpression' }

HostBindings#

BindingExpression
[attr.aria-label]expressionLabel()
[class.cngx-filter-expression-incomplete]isIncomplete()