MenuItem

extends:
Jump To: Members Events

Menu Items are the individual options for each menu choice. There are two important options that must be configured.

The onshow method is for when the menu item is about to be shown. This affords the opportunity to hide the menu or change its text.

Instance Methods

Defined in MenuItem:

Events

action : function ( )

this event is fired from the item if the user selected this particular menu item. It is best to use the onaction method of MenuItem rather than adding an event listener directly.

show : function ( )

this event is fired when the item is about to be shown and can be used to configure the appearance of the item. It is best to use the onshow method of MenuItem rather than adding an event listener directly.

The other method is onaction which is the function that handles the logic when the user selects that particular option.