Javascript: ComponentSettings.containerElement Property
Description
Optional. The container DIV element. Alternative to containerID. If both are specified, containerElement takes precedence.
Syntax
<HTMLDivElement> ComponentSettings.containerElementExamples
The following example demonstrates ComponentSettings.containerElement in a practical document-editing workflow. Optional. The container DIV element. Alternative to containerID. If both are specified, containerElement takes precedence.
function inspectContainerElement(componentSettings) {
const containerElement = componentSettings.containerElement;
console.log("container element:", containerElement);
}