.. _dijit/MenuBar: dijit.MenuBar ============= .. contents:: :depth: 2 :Status: Draft :Version: 1.3 :Authors: Bill Keese The MenuBar widget models a typical menu bar like the quintessential "File" menu on (virtually?) all programs. PopupMenuBarItem widgets are the actual items in the menu, and like PopupMenuItem it displays a submenu or other widget below it. A PopupMenuBarItem always has two child nodes: a tag with the displayed label (usually in a SPAN tag), and a widget to be popped up, typically a dijit.Menu widget. There's also a MenuBarItem widget if you need an entry in your MenuBar that *doesn't* have a drop down. A programatically created MenuBar --------------------------------- .. cv-compound:: .. cv:: javascript .. cv:: html
Creation from markup is even easier. .. cv-compound:: .. cv:: javascript .. cv:: html Accessibility ============= Keyboard -------- ========================================== ================================================= Action Key ========================================== ================================================= Navigate into/out of a MenuBar Tab or shift-tab Navigate menubar items Left and right arrow keys Activate a menubar item Spacebar or enter Open a submenu Down arrow Close a submenu Esc, or use right arrow to navigate to next menu ========================================== ================================================= Implementation Notes ==================== See :ref:`dijit.Menu