DS Server

Toolbar Class

Class

Description

Controls the main toolbar and its contextual toolbars.

Syntax

Toolbar

Examples

The following example demonstrates Toolbar in a practical Document Viewer workflow. This object provides functionalities for controlling the toolbar.

TXDocumentViewer.toolbar.show();
TXDocumentViewer.toolbar.enable();
console.table(TXDocumentViewer.toolbar.getItems());

Members

Properties

PropertyDescription
contextualToolbarsContextual annotation and tracked-changes toolbars.

Methods

MethodDescription
disableDisables toolbar interaction.
enableEnables toolbar interaction.
getItemsReturns the current main-toolbar items. The returned array can be changed without changing the toolbar configuration.
hideHides the toolbar.
setItemsReplaces all main-toolbar items with DOM elements or built-in item descriptors.
showShows the toolbar.