Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

 

 
  • No labels