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