Adds an event listener.
Object
Menu
A menu.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| EventListeners |
readonly | A collection of event listeners. | |
| Events |
readonly | A collection of events. | |
| Number | readonly | The index of the Menu within its containing object. | |
| Boolean | readonly | Returns true if the object specifier resolves to valid objects. | |
| MenuElements |
readonly | A collection of menu elements. | |
| MenuItems |
readonly | A collection of menu items. | |
| MenuSeparators |
readonly | A collection of menu separators. | |
| String | readonly | The name of the Menu. | |
| Application | readonly | The parent of the Menu (a Application). | |
| Object | read/write | A property that allows setting of several properties at the same time. | |
| Submenus |
readonly | A collection of submenus. | |
| String | readonly | The name of the Menu for display in the user interface. The title includes any ampersand characters (&), which are used to tell the Windows OS to underline the following character in the name for use with the Alt key to navigate to a menu item. Double ampersands are used to display an actual ampersand character in the name. The Mac OS ignores and removes the extra ampersand characters. |
Events
| Name | Description |
|---|---|
| Dispatched before the Menu is displayed. This event does not bubble. This event is not cancelable. |
Methods
→ Menu[]
Resolves the object specifier, creating an array of object references.
→ Boolean
Removes the event listener.
→ String
Generates a string which, if executed, will return the Menu.
→ String
Retrieves the object specifier.
Object of 7
Properties elsewhere that hold a Menu.
Parameter of 3
Method parameters that accept a Menu.
Return 12
Methods that return a Menu.