modifySubItems
Function
Definition
Package:@progress/kendo-vue-treelist
Changes the subItems collection of each data item which matches the passed condition.
Parameters:dataany
The data tree.
subItemsFieldanyThe field which points to the subitems collection of each data item.
conditionanyA function that will be executed for each data item and
will return true for items that have to change the subitems collection.
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.