createDataTree
Function
Definition
Package:@progress/kendo-react-data-tools
Creates a tree from the passed dataset.
Parameters:datasetany[]
The source dataset of data items.
getId(item: any) => anyA function which will return the id of the data item.
getParentId(item: any) => anyA function which will return the data item id of its parent 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 structured in a tree.