This section summarizes the four menu types:
Application menu
Command menu
View menu
Submenu
The three menu types are structured like the widgets in the previous section. Each entry includes a brief description, repeating some of the information from Chapter 4, followed by an enumeration of the widget’s attribute and model properties, as well as relevant events. Unlike the other menu types, Submenu is accessed through a direct API, so the format for this entry will be structured as an API entry.
The Application menu appears in the upper-left corner of the screen when the user taps the left side of the status bar. It includes some system-defined and some application-defined actions, and is intended to have an application-wide scope for the most part.
Events |
---|
Mojo.Event.command Mojo.Event.commandEnable |
The Command menu items are presented at the bottom of the screen. Items include variable-sized buttons that can be combined into groups, and in a horizontal layout from left-to-right.
Events |
---|
Mojo.Event.command Mojo.Event.commandEnable |
The View menu presents items as variable-sized buttons, either singly or in groups across the top of the scene. The items are rendered in a horizontal sequence starting from the left of the screen to the right.
Events |
---|
Mojo.Event.command Mojo.Event.commandEnable |
Mojo.Controller.SceneController.popupSubmenu() |
Pop-up submenus can offer a transient list of choices to the user, typically off of another menu entry or from a DOM element in the scene.
3.12.161.6