Add-group button slot
CngxFilterBuilderAddGroupButton
Directivev0.1.0
projects/forms/filter-builder/filter-builder-slots.ts
Import#
import { CngxFilterBuilderAddGroupButton } from '@cngx/forms/filter-builder'
Description#
Add-group button slot. Replaces the default "add nested group" control in
every group header. Context: add(), label, disabled (set at the max
nesting depth).
<ng-template cngxFilterBuilderAddGroupButton let-add="add" let-disabled="disabled">
<button type="button" [disabled]="disabled" (click)="add()">Add group</button>
</ng-template>Wins over CNGX_FILTER_BUILDER_CONFIG.templates.addGroupButton and the default button.
Metadata#
Index#
Properties
Methods
Instance Properties#
Methods#
ngTemplateContextGuard#
CngxFilterBuilderAddGroupButtonContextStatic
ngTemplateContextGuard(_dir: CngxFilterBuilderAddGroupButton, _ctx: unknown)@param_ctx
unknown