Product: webViewer
Product Version: 8.6.0
I’m customizing the header and I’m trying to toggle the sticky note Tool in angular with my own action and I can’t get it to work.
I’m using : instance.UI.setToolMode(‘STICKY’);
the code : instance.UI.setHeaderItems(header => {
header.push({
type: ‘actionButton’,
img: ‘assets/comment.svg’,
onClick: () => {
instance.UI.setToolMode(‘STICKY’);
}
});
});
I found this tool name here : PDFTron WebViewer Namespace: Tools
is it the right tool name ?
If so what can I try to solve this ?