MCPcopy
hub / github.com/gmattie/Data-Pixels / createContent

Function createContent

resources/source/js/application/popups.js:304–315  ·  view source on GitHub ↗

* @description Creates and HTMLDivElement with optional child objects. * @param {string} CSSClass - The name of the CSS class to add to the element's class list. * @param {...Object} children - Optional objects to be appended to the element. * @private * @function *

(CSSClass, ...children)

Source from the content-addressed store, hash-verified

302 *
303 */
304function createContent(CSSClass, ...children) {
305
306 const result = document.createElement(C.HTML.DIV);
307 result.classList.add(CSSClass);
308
309 for (const child of children) {
310
311 result.appendChild(child);
312 }
313
314 return result;
315}
316
317/**
318 * @description Creates an HTMLSelectElement within an HTMLLabelElement.

Callers 4

initAboutDialogFunction · 0.85
initFileTypeErrorDialogFunction · 0.85
initSettingsDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected