Constructor
(abstract) new module:caplin/component/menu/AbstractMenu(sDescription, fHandler, pChildren)
This is in beta and therefore subject to API changes.
This abstract class should never be constructed explicitly.
AbstractMenu
contains all the functionality for the following classes:
module:caplin/component/menu/MenuItem
module:caplin/component/menu/SubMenu
module:caplin/component/menu/MenuGroup
The concrete Menu
classes themselves merely provide helpful constructor methods to making using
AbstractMenu
easier.
Parameters:
Name | Type | Description |
---|---|---|
sDescription |
String | Description or name of this menu item. |
fHandler |
function | Action fired when this menu item is clicked. |
pChildren |
Array | Child menu items for this menu group or submenu. |