new Toolbar(configuration, docViewerId, onInitialize)
Defines toolbar class used to construct a new toolbar for initializing.
Parameters:
Name | Type | Description |
---|---|---|
configuration |
WebPDF.Toolbar.Configuration | toolbar configuration |
docViewerId |
string | The dom element id name to wrapper current WebPDFViewer |
onInitialize |
WebPDF.Toolbar.onInitialize | This callback allows you to add dynamic buttons |
- See:
Classes
Methods
-
<static> getRegistry()
-
get toolbar registry instance
Returns:
- Type
- ToolbarRegistry
-
initialize()
-
Parse the toolbar configuration and display it on the interface
Type Definitions
-
onInitialize(tools, topToolbar, bottomToolbar)
-
Parameters:
Name Type Description tools
WebPDF.Toolbar.Component.ParserTool topToolbar
WebPDF.Toolbar.Component bottomToolbar
WebPDF.Toolbar.Component Returns:
- Type
- void