MCPcopy Create free account
hub / github.com/microsoft/SandDance / addEl

Function addEl

packages/vega-deck.gl/src/htmlHelpers.ts:10–14  ·  view source on GitHub ↗
(tagName: string, parentElement: HTMLElement)

Source from the content-addressed store, hash-verified

8 * @returns new HTMLElement.
9 */
10export function addEl(tagName: string, parentElement: HTMLElement) {
11 const el = document.createElement(tagName);
12 parentElement.appendChild(el);
13 return el;
14}
15
16/**
17 * Create a new div HTMLElement as a child of another element.

Callers 1

addDivFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected