# Javascript: StatusBarViewGenerator.getShowLine Method

> Specifies whether the status bar shows the line number of the current text input position.

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

---

### Description

Specifies whether the status bar shows the line number of the current text input position.

### Syntax

```javascript
<void> StatusBarViewGenerator.getShowLine(<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.getShowLine` in a practical document-editing workflow. It specifies whether the status bar shows the line number of the current text input position.

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

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

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGenerator.getShowLanguage Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getshowlanguage-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGenerator.getShowPage Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgenerator/getshowpage-method/llms-full.txt)
