Javascript: DocumentViewerController.toolbar Property
Description
Controls the main toolbar and its contextual toolbars. Available after initialize() completes.
Syntax
<Toolbar> DocumentViewerController.toolbarExamples
The following example demonstrates TXDocumentViewer.toolbar in a practical Document Viewer workflow. Provides functionalities for controlling the toolbar.
const toolbar = TXDocumentViewer.toolbar;
toolbar.show();
console.log("Toolbar items:", toolbar.getItems().length);