In my application I would need a context menu in DocuVieware. Best solution would be a configurable one in DocuVieware! But that's a request for future releases I think.
There are a bunch of jquery/javascript context menu implementations out there. As an example I choose this one: https://swisnl.github.io/jQuery-context ... input.html It has all the features I need in my application...
Now to the problem. This is the first part of the function to initiate the context menu.
Code: Select all
$(function () {
$.contextMenu({
selector: '#viewerContainerDocuVieware1',
trigger: 'right',
callback: function (key, options) {
var m = "clicked: " + key;
window.console && console.log(m) || alert(m);
}