The following CLAPI methods are available to manipulate the buttons and sidebar for the DocViewer layout.
hideToolbarButton(btnName)
showToolbarButton(btnName)
hideSideToolbar()
showSideToolbar()
hideTopToolbar()
showTopToolbar()
Top navigation button names:
SaveDocument
Print
ZoomIn
ZoomOut
RubberbandZoom
Magnify
FitWindow
FitHeight
FitWidth
GoToFirstPage
GoToPreviousPage
JumpToPage
GoToNextPage
GoToLastPage
About
Sidebar navigation button names:
AnnStickyNote
AnnLine
AnnHighlightRect
AnnText
Example on how to test it in the browser console
var docviewer = akioma.root.dynObject.getObject('docviewerdemow').getObject('docviewer') docviewer.controller.hideTopToolbar() docviewer.controller.showTopToolbar() docviewer.controller.hideSideToolbar() docviewer.controller.showSideToolbar() docviewer.controller.showTopToolbar() docviewer.controller.hideToolbarButton('SaveDocument') docviewer.controller.showToolbarButton('SaveDocument')