TX Text Control .NET Server

Javascript: StatusBarViewGeneratorColors.setGradientBackColor Method

MethodDeprecated|Introduced in 30.0

Description

Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support horizontal gradients anymore. Sets the background color at the right edge of the status bar.

Syntax

<void> StatusBarViewGeneratorColors.setGradientBackColor(<string> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

ParameterDescription
value

The property value.

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.setGradientBackColor in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support horizontal gradients anymore. Sets the background color at the right edge of the status bar.

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

function configureGradientBackColor(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.setGradientBackColor(
        "#ffffff",
        function() {
            console.log("set gradient back color completed.");
        },
        onTxError
    );
}