DS Server

Javascript: RulerBarViewGeneratorColors.getSeparatorColorDark Method

Method|Introduced in 30.0

Description

Gets the color of dark separators.

Syntax

<void> RulerBarViewGeneratorColors.getSeparatorColorDark(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Receives the color value.

errorCallback

Optional. Is called when the operation failed with an error.

Examples

The following example demonstrates RulerBarViewGeneratorColors.getSeparatorColorDark in a practical document-editing workflow. It gets the color of dark separators.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectSeparatorColorDark(rulerBarViewGeneratorColors) {
    rulerBarViewGeneratorColors.getSeparatorColorDark(
        function(result) {
            console.log("get separator color dark result:", result);
        },
        onTxError
    );
}