# Javascript: Annotations.showToolbar Method

> Shows, hides, or toggles the annotation toolbar. Showing the toolbar also activates annotation editing.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 29.0
- **Path:** DS Server > Reference > JavaScript API - Document Viewer > Javascript: Annotations.showToolbar Method
- **236 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showtoolbar-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showtoolbar-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showtoolbar-method/llms-full.txt

---

### Description

Shows, hides, or toggles the annotation toolbar. Showing the toolbar also activates annotation editing.

### Syntax

```javascript
<void> Annotations.showToolbar([<boolean> show])
```

### Parameters

| Parameter | Description |
|---|---|
| show | Optional. `true` shows the toolbar, `false` hides it, and omission toggles it. |

### Return Value

Shows, hides, or toggles the annotation toolbar. Showing the toolbar also activates annotation editing.

### Examples

The following example demonstrates `annotations.showToolbar` in a practical Document Viewer workflow. Shows or hides the annotations toolbar.

```javascript
TXDocumentViewer.annotations.showToolbar(true);
console.log("show toolbar requested.");
```

---

## Nearby

- **Previous:** [Javascript: Annotations.showSidebar Method](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/annotations/showsidebar-method/llms-full.txt)
- **Next:** [CompletedFormField Class](https://docs.textcontrol.com/ds-server/reference/javascript-document-viewer/completedformfield/llms-full.txt)
