Skip to main content
cngx-src documentation

CngxFilterBuilderRemoveButton

Directivev0.1.0

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

Import#

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

Description#

Remove-button slot, shared by expression rows and group headers. Replaces the default delete control. Context: remove(), label.

<ng-template cngxFilterBuilderRemoveButton let-remove="remove" let-label="label">
  <button type="button" [attr.aria-label]="label" (click)="remove()">x</button>
</ng-template>

Wins over CNGX_FILTER_BUILDER_CONFIG.templates.removeButton and the default button.

Metadata#

Index#

Instance Properties#

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

Methods#

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