New to KendoReact? Start a free 30-day trial
process<T>
Applies the specified operation descriptors to the data.
ts
const result = process(data, {
skip: 10,
take: 20,
group: [{
field: 'category.categoryName',
aggregates: [
{ aggregate: "sum", field: "unitPrice" },
{ aggregate: "sum", field: "unitsInStock" }
]
}],
sort: [{ field: 'productName', dir: 'desc' }],
filter: {
logic: "or",
filters: [
{ field: "discontinued", operator: "eq", value: true },
{ field: "unitPrice", operator: "lt", value: 22 }
]
}
});
Parameters
data T[]
The data to be processed.
state State
The operation descriptors that will be applied to the data.
Returns
DataResult - The processed data.