Viewer interface
Control visual elements
Change the viewer chrome without rebuilding or reloading the document.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Control the viewer chrome
Toggle thumbnails, the toolbar, and browser full-screen mode through the public JavaScript API.
API used
TXDocumentViewer.toolbar.show
How it works
The Razor helper prepares the browser viewer and its document. Demo-specific JavaScript uses the public TXDocumentViewer API and remains encapsulated with this demo.
Source files
See the implementation
The view, browser behavior, assets, and controller are encapsulated in Demos/DocumentViewer/Advanced/VisualElements.