var customButton = $('<button type="button" class="roundedCornerButton">Test Button</button>');
customButton.on('click', function() {
console.log('Clicked custom button');
// Code to change note content.
// Is there a way of knowing which annotation was clicked
// so, that I can use code provided by you
});
window.AnnotationEdit.buttons.push({
element: customButton,
isHidden: function() {
return false;
}
});
Actually I was hoping if there is a way that I can access the annotation to which annotation edit popup belongs to in the custom button's onClick function.
Regards,
Nitin