DS Server

ComponentSettings Object

Object|Introduced in 32.0

Description

Component settings.

Syntax

{
   containerID: <string>,
   webSocketURL: <string>,
   [editorSettings: <DocumentEditorSettings>],
   [replaceContainer: <boolean>],
   [domContentLoaded: <function>],
   [containerElement: <HTMLDivElement>]
}

Examples

The following example demonstrates ComponentSettings in a practical document-editing workflow. Component settings.

function inspectComponentSettings(componentSettings) {
    console.log("container id:", componentSettings.containerID);
    console.log("web socket url:", componentSettings.webSocketURL);
    console.log("editor settings:", componentSettings.editorSettings);
    console.log("replace container:", componentSettings.replaceContainer);
}

Members

Properties

PropertyDescription
containerElementOptional. The container DIV element. Alternative to containerID. If both are specified, containerElement takes precedence.
containerIDThe ID of the editor container DIV element.
domContentLoadedOptional. Event handler which is fired as soon as the document editor scaffolding has been inserted into the DOM.
editorSettingsOptional. The document editor settings.
replaceContainerOptional. Replace the container element instead of appending ourselves to it as a child.
webSocketURLThe WebSocket URL.