New to Kendo UI for Angular? Start a free 30-day trial
FilterComponent
Represents the Kendo UI Filter component for Angular. The Filter component can be used to apply any user defined filter criteria.
ts
@Component({
selector: 'my-app',
template: `
<kendo-filter [filters]="filters" (valueChange)="onValueChange($event)"></kendo-filter>
`
})
export class AppComponent {
public filters: FilterExpression[] = [
{
name: 'country',
label: 'Country',
filter: 'string',
operators: ['eq', 'neq'],
},
{
name: 'budget',
filter: 'number'
}
];
onValueChange(e: CompositeFilterDescriptor){
console.log(e)
}
}
Selector
kendo-filter
Inputs
Name | Type | Default | Description |
---|---|---|---|
filters |
|
Specifies the available user-defined filters. At least one filter should be provided. | |
value |
|
Sets the initial |
Events
Name | Type | Description |
---|---|---|
valueChange |
|
Fires every time the Filter component value is updated. That is each time a Filter Group or Filter Expression is added, removed, or updated. |