New to Kendo UI for AngularStart 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

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<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
SelectorInputsEvents
Not finding the help you need?
Contact Support