Skip to main content
cngx-src documentation

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#

Instance Properties#

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

Methods#

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