Filters the piped items based on the provided IgxFilterOptions.

Example

@for (item of items | igxFilter: filterOptions; track item.id) {
    <igx-list-item>{{ item.text }}</igx-list-item>
}
new IgxFilterPipe(): IgxFilterPipe

Returns IgxFilterPipe

Filters the items based on the provided options.

transform(items: any[], options: IgxFilterOptions | null | undefined): any[]

Defined in projects/igniteui-angular/directives/src/directives/filter/filter.directive.ts:241

Parameters

  • items: any[]

    the items to be filtered; ignored when options.items is set

  • options: IgxFilterOptions | null | undefined

    the options that the filtering is based on

Returns any[]

Example

const filteredItems = new IgxFilterPipe().transform(items, filterOptions);