# Javascript: StatusBarViewGenerator.getShowZoomTrackBar Method

> Specifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: StatusBarViewGenerator.getShowZoomTrackBar Method
- **385 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/getshowzoomtrackbar-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/getshowzoomtrackbar-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/getshowzoomtrackbar-method/llms-full.txt

---

### Description

Specifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.

### Syntax

```javascript
<void> StatusBarViewGenerator.getShowZoomTrackBar(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the property value. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGenerator.getShowZoomTrackBar` in a practical document-editing workflow. It specifies whether the status bar displays a track bar instead of a simple number to show and to set the zooming factor.

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

TXTextControl.statusBar.getShowZoomTrackBar(
    function(result) {
        if (result) {
            console.log("get show zoom track bar is available.");
        } else {
            console.warn("get show zoom track bar is not available in the current document state.");
        }
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGenerator.getShowZoom Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/getshowzoom-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGenerator.resetDisplayColors Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgenerator/resetdisplaycolors-method/llms-full.txt)
