useVisibleTreeNodes Function

Custom hook which returns a flat list of visible nodes from given TreeModelSource and subscribes to onModelChanged event to update the list when model changes.

useVisibleTreeNodes(modelSource: TreeModelSource): VisibleTreeNodes

Parameter Type Description
modelSource TreeModelSource  

Returns - VisibleTreeNodes

Defined in

Last Updated: 12 June, 2024