Normally submenu is displayed in right down direction. NlsMenu provides option to force a submenu to be displayed in specified direction. The NlsMenu auto positioning feature will determines the best position if the space is not enough to display the submenu in the specified direction.



menu theme: feminim

To specify menu direction, use the addSubmenu() function:

var menuBar = menuMgr.createMenubar("menubar");
menuBar.addItem("1", "Submenu Right Up", "#", []);
menuBar.addSubmenu("1", "rightUpMenu", false, null, null, [5, 5], ["right", "up"]);
menuBar.addItem("2", "Submenu Right Down", "#", []);
menuBar.addSubmenu("2", "rightDownMenu", false, null, null, [5, 5], ["right", "down"]);