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

Function addDiv

packages/vega-deck.gl/src/htmlHelpers.ts:21–27  ·  view source on GitHub ↗
(parentElement: HTMLElement, className?: string)

Source from the content-addressed store, hash-verified

19 * @param className Optional css class name to apply to the div.
20 */
21export function addDiv(parentElement: HTMLElement, className?: string) {
22 const div = addEl('div', parentElement) as HTMLDivElement;
23 if (className) {
24 div.className = className;
25 }
26 return div;
27}
28
29/**
30 * Measure the outer height and width of an HTMLElement, including margin, padding and border.

Callers

nothing calls this directly

Calls 1

addElFunction · 0.70

Tested by

no test coverage detected