Documentation / @ripl/dom / ensureGroupPath
Function: ensureGroupPath()
ensureGroupPath<
TElement>(root,groupIds,defaultTag?):VNode<TElement>
Defined in: dom/src/vdom.ts:53
Ensures that a nested group path exists in the virtual tree, creating missing intermediate nodes as needed.
Type Parameters
| Type Parameter | Default type |
|---|---|
TElement | unknown |
Parameters
| Parameter | Type | Default value |
|---|---|---|
root | VNode<TElement> | undefined |
groupIds | string[] | undefined |
defaultTag | string | 'g' |
Returns
VNode<TElement>