API Reference > ui-components > Tree > useVisibleTreeNodes 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 ui/components/src/ui-components/tree/controlled/TreeHooks.ts Line 23 Last Updated: 12 June, 2024