DS Server

Javascript: ComponentSettings.containerElement Property

Property|Introduced in 32.0

Description

Optional. The container DIV element. Alternative to containerID. If both are specified, containerElement takes precedence.

Syntax

<HTMLDivElement> ComponentSettings.containerElement

Examples

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);
}