detaches a context menu from windows globally or detaches a custom window's menu
menuObj | object | the context menu's object (returned by the attachContextMenu method) |
// attach a global context menu to windows
var myMenu = dhxWins.attachContextMenu();
// detach
dhxWins.detachContextMenu();
myMenu = null;
// attach a custom context menu to icon for the window #2
var myMenu2 = w2.attachContextMenu();
// detach the custom context menu from the icon of the window #2
w2.detachContextMenu();
myMenu = null;
Back to top