DS Server

Javascript: ComponentSettings.replaceContainer Property

Property|Introduced in 32.0

Description

Optional. Replace the container element instead of appending ourselves to it as a child.

Syntax

<boolean> ComponentSettings.replaceContainer

Examples

The following example demonstrates ComponentSettings.replaceContainer in a practical document-editing workflow. Optional. Replace the container element instead of appending ourselves to it as a child.

function inspectReplaceContainer(componentSettings) {
    const replaceContainer = componentSettings.replaceContainer;
    console.log("replace container:", replaceContainer);
}