Logic-toggle slot - the AND / OR / XOR picker on each group
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#
Properties
Methods
Instance Properties#
Methods#
ngTemplateContextGuard#
CngxFilterBuilderLogicToggleContextStatic
ngTemplateContextGuard(_dir: CngxFilterBuilderLogicToggle, _ctx: unknown)@param_ctx
unknown