Interface · v2.7.1
FilterCtx
FilterCtx interface exported by the ngbootstrap package API.
Import
import type { FilterCtx } from '@angular-bootstrap/ngbootstrap';Declaration
interface FilterCtx<T = any>Properties
$implicit
$implicit: AbstractControl | nullcontrol
control: AbstractControl | nullcol
col: ColumnDef<T>field
Column field name (same as `col.field`).
field: stringdescriptor
descriptor: NgbFilterDescriptor | nullfilter
Current composite filter root (clone). Use with `filterChange` for custom filter templates.
filter: NgbCompositeFilterDescriptoroperators
operators: NgbFilterOperator[]setOperator
setOperator: (operator: NgbFilterOperator) => voidsetValue
setValue: (value: any) => voidclear
clear: () => voidfilterChange
Replaces the grid filter state and emits `filterChange` when enabled.
filterChange: (filter: NgbCompositeFilterDescriptor) => voidsetFieldFilter
Sets this column's field filter in the current descriptor and commits.
setFieldFilter: (operator: NgbFilterOperator, value?: any) => void