API Reference > presentation-components > Tree > PresentationTreeDataProvider PresentationTreeDataProvider Class Presentation Rules-driven tree data provider. Implements IPresentationTreeDataProvider IDisposable Methods Name Description constructor(props: PresentationTreeDataProviderProps): PresentationTreeDataProvider Constructor. dispose(): void Destructor. getFilteredNodePaths(filter: string): Promise<NodePathElement[]> Returns filtered node paths. getNodeKey(node: TreeNodeItem): NodeKey Returns a NodeKey from given TreeNodeItem. getNodes(parentNode?: TreeNodeItem, pageOptions?: PageOptions): Promise<DelayLoadedTreeNodeItem[]> Returns nodes getNodesCount(parentNode?: TreeNodeItem): Promise<number> Returns the total number of nodes Properties Name Type Description imodel Accessor ReadOnly IModelConnection IModelConnection used by this data provider pagingSize Accessor undefined | number Paging options for obtaining nodes. rulesetId Accessor ReadOnly string Id of the ruleset used by this data provider Defined in presentation/components/src/presentation-components/tree/DataProvider.ts Line 80 Last Updated: 12 June, 2024