TX Text Control .NET Server

Javascript: DocumentViewerController.toolbar Property

Property

Description

Controls the main toolbar and its contextual toolbars. Available after initialize() completes.

Syntax

<Toolbar> DocumentViewerController.toolbar

Examples

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);