DS Server

Javascript: StatusBarViewGeneratorColors.resetSeparatorColor Method

Method|Introduced in 30.0

Description

Resets the separator color to its default value.

Syntax

<void> StatusBarViewGeneratorColors.resetSeparatorColor([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
callback

Optional. Is called when the operation completed.

errorCallback

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

Examples

The following example demonstrates StatusBarViewGeneratorColors.resetSeparatorColor in a practical document-editing workflow. Resets the separator color to its default value.

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

function resetSeparatorColor(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.resetSeparatorColor(
        function() {
            console.log("reset separator color completed.");
        },
        onTxError
    );
}