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.

  @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

NameTypeDefaultDescription

filters

FilterExpression[]

Specifies the available user-defined filters. At least one filter should be provided.

value

CompositeFilterDescriptor

Sets the initial value of the Filter component.

Events

NameTypeDescription

valueChange

[EventEmitter]({{ site.data.urls.angular['eventemitter'] }})<CompositeFilterDescriptor>

Fires every time the Filter component value is updated. That is each time a Filter Group or Filter Expression is added, removed, or updated.

In this article

Not finding the help you need?