DS Server

Javascript: Annotations.showSidebar Method

Method|Introduced in 29.0

Description

Shows or hides the comments sidebar.

Syntax

<void> Annotations.showSidebar(<boolean> show)

Parameters

ParameterDescription
show

`true` shows the comments sidebar; `false` hides it.

Return Value

Shows or hides the comments sidebar.

Examples

The following example demonstrates annotations.showSidebar in a practical Document Viewer workflow. Shows or hides the sidebar that contains the comments.

TXDocumentViewer.annotations.showSidebar(true);
console.log("show sidebar requested.");