FilterFieldComponent
Represents the Kendo UI Filter Field component for Angular. Used to declare filter expressions for the Filter component.
@Component({
selector: 'my-app',
template: `
<kendo-filter (valueChange)="onValueChange($event)">
<kendo-filter-field field="country" editor="string" [operators]="['neq', 'eq', 'contains']"></kendo-filter-field>
<kendo-filter-field field="budget" editor="number"></kendo-filter-field>
<kendo-filter-field field="discontinued" title="Discontinued" editor="boolean"></kendo-filter-field>
<kendo-filter-field field="ordered on" title="Ordered on" editor="date"></kendo-filter-field>
<kendo-filter>
`
})
export class AppComponent {
onValueChange(e: CompositeFilterDescriptor) {
console.log(e);
}
}
Selector
kendo-filter-field
Inputs
Name | Type | Default | Description |
---|---|---|---|
editor |
|
Specifies the user-defined filter | |
editorFormat? |
|
Specifies the user-defined filter | |
field |
|
Specifies the | |
operators |
|
Specifies the operators that will be available in the order of providing them. If no operators are provided, default operators are used for each filter type. The default string operators are:
The default number and date operators are:
The boolean operator is always set to | |
title |
|
Specifies the |