Menu
From WebOS101
Contents |
Introduction
There are three types of menus supported on webOS. They are the appMenu, commandMenu and viewMenu. They each fill different needs.
appMenu
Command Menu
The command menu is a button bar that appears at the bottom of the screen and contains groups of icons. Command menus are not setup within your view and are handled through the handleCommand function.
viewMenu
View menus are the same as command menus only the appear at the top of the screen.
Pop-Up Sub-Menus
Pop-up sub-menus can be used to offer a transient textual list of choices to the user, typically off of another menu type, or even from a DOM element in the scene. It accepts standard menu models with the addition of some unique properties, but unlike the other menu types, Sub-menu does not use the commander for propagating selections. Instead the onChoose callback is used. -- Mojo Documentation

