usePresentationTreeNodeLoader Function

Custom hooks which creates PagedTreeNodeLoader with PresentationTreeDataProvider using supplied imodel and ruleset.

usePresentationTreeNodeLoader(props: PresentationTreeNodeLoaderProps): { nodeLoader: PagedTreeNodeLoader<IPresentationTreeDataProvider>, onItemsRendered: (items: RenderedItemsRange) => void }

Parameter Type Description
props PresentationTreeNodeLoaderProps  

Returns - { nodeLoader: PagedTreeNodeLoader<IPresentationTreeDataProvider>, onItemsRendered: (items: RenderedItemsRange) => void }

Defined in

Last Updated: 11 June, 2024