This function allows you to add a custom item to the selected annotation action buttons list.
Parameters
- docuViewareID
- The identifier for the DocuVieware™ instance you want to add an annotation action custom button to.
- caption
- A string that represents the text that will be displayed as tooltip.
- icon
- A string that contains the SVG markup for the icon that will be displayed.
- callback
- A function that will be executed when the user clicks on the button.
It provides an argument with the following prototype: { id } which is the selected annotation identifier.
Example of usage
This code adds a star button to the annotation action button list that displays the selected annotation identifier in the console.
Return Value
1 if error, 0 if success.