Negation-toggle slot - the per-group NOT switch
CngxFilterBuilderNegationToggle
Directivev0.1.0
projects/forms/filter-builder/filter-builder-slots.ts
Import#
import { CngxFilterBuilderNegationToggle } from '@cngx/forms/filter-builder'
Description#
Negation-toggle slot - the per-group NOT switch. Only rendered when negation
is enabled via withNegation(true). Replaces the default toggle. Context:
negated, toggle(), label.
<ng-template cngxFilterBuilderNegationToggle let-negated="negated" let-toggle="toggle">
<button type="button" [class.active]="negated" (click)="toggle()">NOT</button>
</ng-template>Wins over CNGX_FILTER_BUILDER_CONFIG.templates.negationToggle and the default toggle.
Metadata#
Index#
Properties
Methods
Instance Properties#
Methods#
ngTemplateContextGuard#
CngxFilterBuilderNegationToggleContextStatic
ngTemplateContextGuard(_dir: CngxFilterBuilderNegationToggle, _ctx: unknown)@param_ctx
unknown