API Reference > ui-components > Tree > TreeModel TreeModel Interface Data structure that describes tree model. Implemented by MutableTreeModel Methods Name Description getChildOffset(parentId: undefined | string, childId: string): undefined | number getChildren(parentId: undefined | string): undefined | SparseArray<string> getNode(id: string): undefined | TreeModelNode getNode(parentId: undefined | string, childIndex: number): undefined | TreeModelNode | TreeModelNodePlaceholder getNode(nodeId: undefined | string, childIndex?: number): undefined | TreeModelNode | TreeModelNodePlaceholder | TreeModelRootNode getRootNode(): TreeModelRootNode iterateTreeModelNodes(parentId?: string): IterableIterator<TreeModelNode> Defined in ui/components/src/ui-components/tree/controlled/TreeModel.ts Line 180 Last Updated: 11 June, 2024