# Javascript: TXTextControl.TabLeader Enumeration

> Defines how a tab gap is filled.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: TXTextControl.TabLeader Enumeration
- **302 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tableader-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tableader-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tableader-enumeration/llms-full.txt

---

### Description

Defines how a tab gap is filled.

### Members

| Member | Description |
|---|---|
| None | The tab gap is not filled. |
| Period | The tab gap is filled with periods. |
| Dot | The tab gap is filled with dots. |
| Dash | The tab gap is filled with dashes. |
| Underline | The tab gap is underlined. |

### Examples

The following example uses `TXTextControl.TabLeader.Period` (the tab gap is filled with periods.) in a document-editing workflow.

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

TXTextControl.paragraphFormat.setTabLeaders(
    TXTextControl.TabLeader.Period,
    function() {
        console.log("set tab leaders completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.TableAddPosition Enumeration](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tableaddposition-enumeration/llms-full.txt)
- **Next:** [Javascript: TXTextControl.tableGridLines Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/tablegridlines-property/llms-full.txt)
