viewer.annotationAdd = function(args) {
var pdfViewer = document.getElementById('pdfViewer_comment_context_menu')
.ej2_instances[0];
var length = pdfViewer.items.length;
for (var x = 0; x < length; x++) {
if (pdfViewer.items[x].text === 'Set Status') {
var id = pdfViewer.items[x].id;
document.getElementById(id).style.visibility = 'hidden';
}
}
}
viewer.annotationSelect = function(args) {
var pdfViewer = document.getElementById('pdfViewer_comment_context_menu')
.ej2_instances[0];
var length = pdfViewer.items.length;
for (var x = 0; x < length; x++) {
if (pdfViewer.items[x].text === 'Set Status') {
var id = pdfViewer.items[x].id;
document.getElementById(id).style.visibility = 'hidden';
}
}
}
viewer.documentLoad = function(args) {
var input = document.getElementById('pdfViewer_comment_context_menu');
if (input) {
input.remove();
}
}
|