TX Text Control .NET Server

Javascript: Annotations.showToolbar Method

Method|Introduced in 29.0

Description

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

Syntax

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

Parameters

ParameterDescription
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.

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