mapTree
Function
Definition
Package:@progress/kendo-react-treelist
Creates a new array with the results of calling the provided callback function on every element in the provided data tree.
Parameters:treeany[]
The data tree.
subItemsFieldstringThe field which points to the subitems collection of each data item.
callback(value: any) => anyThe callback function.
Returns:any[]
- The new data tree.