Check documentation for the latest version of dhtmlxSuite detachContextMenu DHTMLX Docs

detachContextMenu

detaches a context menu from a window's button

void detachContextMenu(object menuObj);
menuObjobjectthe context menu's object (returned by the attachContextMenu method)

Example

// attach a context menu to a button of the window #1
var myMenuPark = w1.button("park").attachContextMenu();
// detach the context menu from a button of the window#1
w1.button("park").detachContextMenu();
myMenuPark = null;

Back to top