returns the context menu object attached to a window's button
dhtmlXMenuObject | the context menu instance |
// attach a context menu to a button of the window #1
var myMenuPark = w1.button("park").attachContextMenu();
// somewhere in a different place
var attachedMenu = w1.button("park").getContextMenu();
// attach a context menu to a button of the window#2
var myMenuMinMax = w2.button("minmax").attachContextMenu();
// somewhere in a different place
var attachedMenu = w2.button("minmax").getContextMenu();
Back to top