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>
} Constructors
Section titled "Constructors"IgxFilterPipe
Section titled "IgxFilterPipe"new IgxFilterPipe(): IgxFilterPipe Returns IgxFilterPipe
Methods
Section titled "Methods"transform
Section titled "transform"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.itemsis set - options:
IgxFilterOptions | null | undefinedthe options that the filtering is based on
Returns any[]
Example
const filteredItems = new IgxFilterPipe().transform(items, filterOptions);