New to Kendo UI for Angular? Start a free 30-day trial

compileFilter

Creates a Predicate function for the specified CompositeFilterDescriptor.

import { compileFilter } from '@progress/kendo-data-query';

const data = [{ name: "Pork" }, { name: "Pepper" }, { name: "Beef" } ];
const predicate = compileFilter({ logic: "and", filters: [{ field: "name", operator: "startswith", value: "P" }] });
const result = data.filter(predicate);

Parameters

descriptor

CompositeFilterDescriptor

The descriptor for which the predicate is created.

Returns

Predicate

  • The created function instance.

In this article

Not finding the help you need?