I also would like to completely disable the side panel that shows notes and annotations.
Is there a way to do that?
Thanks
var hiddenFunction = function() { return true; };
$(document).on('viewerLoaded', function() {
var styleButton = window.AnnotationEdit.buttons[2];
var noteButton = window.AnnotationEdit.buttons[3];
styleButton.isHidden = hiddenFunction;
noteButton.isHidden = hiddenFunction;
var customButton = $('<button type="button" class="roundedCornerButton">Test Button</button>');
customButton.on('click', function() {
console.log('Clicked custom button');
});
window.AnnotationEdit.buttons.push({
element: customButton,
isHidden: function() {
return false;
}
});
});