Add a custom button with custom behavior to a toolbar.
Posted: Wed May 02, 2018 1:05 am
We would like to add a custom (not built-in) button like this:
We have already customized which built-in toolbars/buttons are visible. See viewtopic.php?f=36&t=30822 Now we would like to add a button that is not built-in.
What have we tried?
1. We looked at the JavaScript API, but the Viewer's JavaScript API does not include app.addToolbarButton.
2. We looked at Customize Toolbar > Toolbars > New, and added a new Toolbar, but were not able to add a custom button to this toolbar.
3. We looked at Customize Toolbar > Commands > New..., but the New... button is disabled.
How can we add a custom button to the toolbar?
We have already customized which built-in toolbars/buttons are visible. See viewtopic.php?f=36&t=30822 Now we would like to add a button that is not built-in.
What have we tried?
1. We looked at the JavaScript API, but the Viewer's JavaScript API does not include app.addToolbarButton.
2. We looked at Customize Toolbar > Toolbars > New, and added a new Toolbar, but were not able to add a custom button to this toolbar.
3. We looked at Customize Toolbar > Commands > New..., but the New... button is disabled.
How can we add a custom button to the toolbar?