Skip to main content
cngx-src documentation

CngxFilterBuilderLogicToggle

Directivev0.1.0

projects/forms/filter-builder/filter-builder-slots.ts

Import#

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

Description#

Logic-toggle slot - the AND / OR / XOR picker on each group. Replaces the default toggle. Context: logic, options (the configured logicOptions), setLogic().

<ng-template cngxFilterBuilderLogicToggle let-logic="logic" let-options="options" let-setLogic="setLogic">
  <my-segmented [value]="logic" [options]="options" (valueChange)="setLogic($event)" />
</ng-template>

Restrict the choices with withLogicOptions(...). Wins over CNGX_FILTER_BUILDER_CONFIG.templates.logicToggle and the default toggle.

Metadata#

Index#

Instance Properties#

templateRef#unknown
Readonly
inject<TemplateRef<CngxFilterBuilderLogicToggleContext>>(TemplateRef)

Methods#

Static
ngTemplateContextGuard(_dir: CngxFilterBuilderLogicToggle, _ctx: unknown)
@param_ctxunknown