* @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)
| 302 | * |
| 303 | */ |
| 304 | function 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. |
no outgoing calls
no test coverage detected