Function
addDiv
(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 | */ |
| 21 | export 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
Tested by
no test coverage detected