TX Text Control .NET Server

Javascript: StatusBarViewGeneratorColors.resetBackColorTop Method

Method|Introduced in 30.0

Description

Resets the status bar's backColorTop to its system dependent default value.

Syntax

<void> StatusBarViewGeneratorColors.resetBackColorTop([<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.resetBackColorTop in a practical document-editing workflow. Resets the status bar's backColorTop to its system dependent default value.

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

function resetBackColorTop(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.resetBackColorTop(
        function() {
            console.log("reset back color top completed.");
        },
        onTxError
    );
}