# Javascript: ParagraphFormat.getTabLeaders Method

> Gets an array containing the tab leaders in a paragraph. A tab leader defines how a tab gap is filled.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: ParagraphFormat.getTabLeaders Method
- **330 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/gettableaders-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/gettableaders-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/gettableaders-method/llms-full.txt

---

### Description

Gets an array containing the tab leaders in a paragraph. A tab leader defines how a tab gap is filled.

### Syntax

```javascript
<void> ParagraphFormat.getTabLeaders(<RequestNumbersCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the [tab leaders](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tableader-enumeration/llms-full.txt). |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `ParagraphFormat.getTabLeaders` in a practical document-editing workflow. It gets an array containing the tab leaders in a paragraph. A tab leader defines how a tab gap is filled.

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

TXTextControl.paragraphFormat.getTabLeaders(
    function(result) {
        console.log("get tab leaders result:", result);
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: ParagraphFormat.getStructureLevel Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/getstructurelevel-method/llms-full.txt)
- **Next:** [Javascript: ParagraphFormat.getTabPositions Method](https://docs.textcontrol.com/ds-server/reference/javascript/paragraphformat/gettabpositions-method/llms-full.txt)
