treeToFlat

Creates a flat data array from the passed tree dataset.

Parameters

data

any[]

expandField

string

The field which points to the expanded value of each data item.

subItemsField

string

The 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.

In this article

Not finding the help you need?