Skip to main content
cngx-src documentation

CngxFilterBuilderBody

ComponentOnPushv0.1.0WCAG AA

projects/forms/filter-builder/filter-builder-body.component.ts

Import#

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

Description#

Recursive renderer for <cngx-filter-builder>. Owns the slot-cascade machinery for every per-row visible region (addFilterButton, addGroupButton, removeButton, logicToggle, negationToggle, expressionTemplate, groupTemplate) plus path-keyed context caches.

Internal - not exported through public-api.ts. The host component (CngxFilterBuilder) mounts this body directly; state-driven UI (loading / error / refreshing) is the consumer's concern (wrap with <cngx-async-container [state]>). The body lifts behind CNGX_FILTER_BUILDER_BODY_HOST so consumers can swap the recursive renderer without forking the shell.

Metadata#

Dependencies#

CNGX_FILTER_BUILDER_HOSTinject()host

Relationships

Index#

Inputs#

input()Required

Instance Properties#

config#unknown
ProtectedReadonly
injectFilterBuilderConfig()
emptyContext#EmptyCtx
ProtectedReadonly
{
  addFilter: () => this.addFilterAt(this.rootPath),
  addGroup: () => this.addGroupAt(this.rootPath),
}
glyphs#unknown
ProtectedReadonly
CNGX_FILTER_BUILDER_GLYPHS
logicOptions#unknown
ProtectedReadonly
this.config.logicOptions
negationEnabled#unknown
ProtectedReadonly
this.config.negationEnabled
rootPath#unknown
ProtectedReadonly
Object.freeze([])

Methods#

addFilterAt#void
Protected
addFilterAt(path: unknown)
@parampathunknown
addFilterButtonContext#AddFilterButtonCtx
Protected
addFilterButtonContext(path: unknown)
@parampathunknown
addGroupAt#void
Protected
addGroupAt(path: unknown)
@parampathunknown
addGroupButtonContext#AddGroupButtonCtx
Protected
addGroupButtonContext(path: unknown)
@parampathunknown
childPath#number[]
Protected
childPath(parent: unknown, child: FilterNode, index: number)
@paramparentunknown
@paramchildFilterNode
@paramindexnumber
expressionTemplateContext#ExpressionTemplateCtx
Protected
expressionTemplateContext(expression: FilterExpression, path: unknown)
@paramexpressionFilterExpression
@parampathunknown
groupTemplateContext#GroupTemplateCtx
Protected
groupTemplateContext(group: FilterGroup, path: unknown)
@paramgroupFilterGroup
@parampathunknown
logicToggleContext#LogicToggleCtx
Protected
logicToggleContext(group: FilterGroup, path: unknown)
@paramgroupFilterGroup
@parampathunknown
negationToggleContext#NegationToggleCtx
Protected
negationToggleContext(group: FilterGroup, path: unknown)
@paramgroupFilterGroup
@parampathunknown
removeButtonContext#RemoveButtonCtx
Protected
removeButtonContext(path: unknown, label: string)
@parampathunknown
@paramlabelstring
setLogic#void
Protected
setLogic(path: unknown, next: FilterLogic | undefined)
@parampathunknown