treeToFlat
Function
Definition
Package:@progress/kendo-react-data-tools
Creates a flat data array from the passed tree dataset.
Parameters:dataany[]expandFieldstring
The field which points to the expanded value of each data item.
subItemsFieldstringThe field which points to the subitems collection of each data item.
Returns:any[]
- A collection of the generated data items that are in a flat structure.