Skip to main content
cngx-src documentation

CngxFilterRowController

Interface

projects/forms/filter-builder/filter-builder-row-controller.ts

Import#

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

Description#

The full row brain shared by CngxFilterRow and CngxFilterExpressionRow: derived pickers, editor resolution, template cascade, accessible labels, and the write handlers. Everything derived is a computed() with an explicit equal so unchanged inputs keep their references (no downstream cascades).

Index#

Instance Properties#

ariaLabel#Signal
Readonly
editor#Signal
Readonly
fieldOptions#Signal
Readonly
isIncomplete#Signal
Readonly
operatorOptions#Signal
Readonly
operators#Signal
Readonly
removeButtonContext#Signal
Readonly

Slot context for the remove button - same reference-stability contract.

removeButtonTemplate#Signal
Readonly
valueEditorContext#Signal
Readonly

Slot context for the value editor. A computed() with a structural equal and a stable setValue closure, so template reads and the editor host's inputs keep their references across change detection - a fresh-per-call context would re-push setValue every CD.

valueEditorTemplate#Signal
Readonly

Methods#

defaultOperatorFor#string
defaultOperatorFor(fieldKey: string)
@paramfieldKeystring
handleBooleanValueChange#void
handleBooleanValueChange(next: boolean)
@paramnextboolean
handleDateValueInput#void
handleDateValueInput(event: Event)
@parameventEvent
handleFieldChange#void
handleFieldChange(next: string | undefined)
@paramnextstring | undefined
handleNumberValueInput#void
handleNumberValueInput(event: Event)
@parameventEvent
handleOperatorChange#void
handleOperatorChange(next: string | undefined)
@paramnextstring | undefined
handleRemove#void
handleStringValueInput#void
handleStringValueInput(event: Event)
@parameventEvent
operatorLabel#string
operatorLabel(operator: string)
@paramoperatorstring