TX Text Control .NET Server

Javascript: StatusBarViewGenerator.resetDisplayColors Method

Method|Introduced in 30.0

Description

Resets all display colors of a status bar to their system dependent default values.

Syntax

<void> StatusBarViewGenerator.resetDisplayColors([<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 StatusBarViewGenerator.resetDisplayColors in a practical document-editing workflow. Resets all display colors of a status bar to their system dependent default values.

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

TXTextControl.statusBar.resetDisplayColors(
    function() {
        console.log("reset display colors completed.");
    },
    onTxError
);