Tree API
When rendering the
TreeDataSource component, you can get access to the Tree API by reading it from the DataSource API treeApi property.For updating tree nodes, see the following methods:
collapseAll
() => void
collapseNode
(nodePath: NodePath, options?: {force?: boolean}) => void
deselectAll
() => void
deselectNode
(nodePath: NodePath) => void
expandAll
() => void
expandNode
(nodePath: NodePath, options?: {force?: boolean}) => void
isNodeExpanded
(nodePath: NodePath) => boolean
selectAll
() => void
selectNode
(nodePath: NodePath) => void
toggleNode
(nodePath: NodePath, options?: {force?: boolean}) => void
toggleNodeSelection
(nodePath: NodePath) => void