# Javascript: TXTextControl.SideBarType Enumeration

> Specifies the existing side bar types.

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

---

### Description

Specifies the existing side bar types.

### Members

| Member | Description |
|---|---|
| None | No side bar. |
| TrackChanges | The "Track Changes" side bar. |
| FieldNavigator | The "Field Navigator" side bar. |
| Comments | The "Comments" side bar. |
| All | All possible side bar types. |

### Examples

The following example uses `TXTextControl.SideBarType.TrackChanges` (the "Track Changes" side bar.) in a document-editing workflow.

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

TXTextControl.sideBarToggleButton.setAllowedSideBars(
    TXTextControl.SideBarType.TrackChanges,
    function() {
        console.log("set allowed side bars completed.");
    },
    onTxError
);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.sideBarToggleButton Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/sidebartogglebutton-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.signatureFields Property](https://docs.textcontrol.com/ds-server/reference/javascript/txtextcontrol/signaturefields-property/llms-full.txt)
