getItemPath

Returns the data item path in the tree based on the level parameter.

Parameters

tree

any[]

The data tree.

level

number[]

The level of the target tree item.

subItemsField?

string

The field which points to the subitems collection of each data item.

Returns

any[]

  • The path of the data item.

In this article

Not finding the help you need?