# Javascript: StatusBarViewGeneratorColors.getGradientBackColor Method

> 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. Gets the background color at the right edge of the status bar.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: StatusBarViewGeneratorColors.getGradientBackColor Method
- **410 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getgradientbackcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getgradientbackcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getgradientbackcolor-method/llms-full.txt

---

### 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. Gets the background color at the right edge of the status bar.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.getGradientBackColor(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the color value. Is always called with an empty string. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGeneratorColors.getGradientBackColor` 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. Gets the background color at the right edge of the status bar.

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

function inspectGradientBackColor(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.getGradientBackColor(
        function(result) {
            console.log("get gradient back color result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGeneratorColors.getFrameColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getframecolor-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGeneratorColors.getSeparatorColorDark Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/getseparatorcolordark-method/llms-full.txt)
