Skip to content

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 ParameterDefault type
TElementunknown

Parameters

ParameterTypeDefault value
rootVNode<TElement>undefined
groupIdsstring[]undefined
defaultTagstring'g'

Returns

VNode<TElement>