Are you an LLM? You can read better optimized documentation at /api/@badaitech/chaingraph-types/functions/expandAll.md for this page in Markdown format
ChainGraph API Documentation / @badaitech/chaingraph-types / expandAll
Function: expandAll()
expandAll<
TNode,TEntity>(tree):TreeNodeUI<TNode,TEntity>[]
Defined in: packages/chaingraph-types/src/hierarchy/tree-traversal.ts:169
Expand all nodes in tree (set isExpanded = true)
Type Parameters
TNode
TNode = ITreeNode<Record<string, any>>
TEntity
TEntity = any
Parameters
tree
TreeNodeUI<TNode, TEntity>[]
Returns
TreeNodeUI<TNode, TEntity>[]