Home > @uniformdev/canvas > walkNodeTree
walkNodeTree() function
Walks a composition's content tree, visiting each component in a slot or block parameter/field depth-first, in order.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
node | ComponentInstance | EntryData | Array<NodeLocationReference> | |
visitor | (info: TreeNodeInfoTypes<TContext>) => void | |
options | WalkNodeTreeOptions<TContext> | (Optional) |
Returns:
void