New to KendoReactStart a free 30-day trial

Definition

Package:@progress/kendo-react-data-tools

Changes the subItems collection of each data item which matches the passed condition.

Parameters:dataany[]

The data tree.

subItemsFieldstring

The field which points to the subitems collection of each data item.

condition(item: any) => boolean

A function that will be executed for each data item and will return true for items that have to change the subitems collection.

change(subItems: any[]) => any[]

A function which has as a parameter the subitems collection of the matched items and which will return the new subitems collection.

Returns:

any[]

  • The new data tree.
In this article
Definition
Not finding the help you need?
Contact Support