Toolbar Class
Description
Controls the main toolbar and its contextual toolbars.
Syntax
ToolbarExamples
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
| Property | Description |
|---|---|
| contextualToolbars | Contextual annotation and tracked-changes toolbars. |
Methods
| Method | Description |
|---|---|
| disable | Disables toolbar interaction. |
| enable | Enables toolbar interaction. |
| getItems | Returns the current main-toolbar items. The returned array can be changed without changing the toolbar configuration. |
| hide | Hides the toolbar. |
| setItems | Replaces all main-toolbar items with DOM elements or built-in item descriptors. |
| show | Shows the toolbar. |