# Javascript: StatusBarViewGenerator.setShowZoom Method

> Specifies whether the status bar shows the current zoom factor.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: StatusBarViewGenerator.setShowZoom Method
- **334 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/setshowzoom-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/setshowzoom-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/setshowzoom-method/llms-full.txt

---

### Description

Specifies whether the status bar shows the current zoom factor.

### Syntax

```javascript
<void> StatusBarViewGenerator.setShowZoom(<boolean> value, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| 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 `StatusBarViewGenerator.setShowZoom` in a practical document-editing workflow. It specifies whether the status bar shows the current zoom factor.

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

TXTextControl.statusBar.setShowZoom(
    true,
    function() {
        console.log("set show zoom completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGenerator.setShowSectionCounter Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/setshowsectioncounter-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGenerator.setShowZoomTrackBar Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/setshowzoomtrackbar-method/llms-full.txt)
