Represents a menu flyout for displaying commands.
Creates a new Menu object.
The DOM element that will host the control.
The set of properties and values to apply to the new Menu.
Gets or sets the default alignment to be used for this Menu.
Gets or sets the default anchor to be used for this Menu.
Sets the MenuCommand objects that appear in the menu.
Gets the DOM element that hosts the Menu.
Gets a value that indicates whether the Menu is hidden or in the process of becoming hidden.
Gets or sets the default placement to be used for this Menu.
Registers an event handler for the specified event.
The event type to register. It must be beforeshow, beforehide, aftershow, or afterhide.
The event handler function to associate with the event.
Set to true to register the event handler for the capturing phase; otherwise, set to false to register the event handler for the bubbling phase.
Releases resources held by this Menu. Call this method when the Menu is no longer needed. After calling this method, the Menu becomes unusable.
Returns the MenuCommand object identified by id.
The element identifier (ID) of the command to be returned.
The command identified by id.
Hides the Menu.
Hides the specified commands of the Menu.
The commands to hide. The array elements may be MenuCommand objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to hide the commands immediately, without animating them; otherwise, false.
Occurs immediately after the Menu is hidden.
An object that contains information about the event.
Occurs after the Menu is shown.
An object that contains information about the event.
Occurs before the Menu is hidden.
An object that contains information about the event.
Occurs before a hidden Menu is shown.
An object that contains information about the event.
Removes an event handler that the addEventListener method registered.
The event type to unregister. It must be beforeshow, beforehide, aftershow, or afterhide.
The event handler function to remove.
Set to true to remove the capturing phase event handler; set to false to remove the bubbling phase event handler.
Shows the Menu, if hidden, regardless of other states.
Required. The DOM element to anchor the Menu.
The placement of the Menu to the anchor: top, bottom, left, or right.
For top or bottom placement, the alignment of the Menu to the anchor's edge: center, left, or right.
Shows the specified commands of the Menu.
The commands to show. The array elements may be Menu objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to show the commands immediately, without animating them; otherwise, false.
Shows the specified commands of the Menu while hiding all other commands.
The commands to show. The array elements may be MenuCommand objects, or the string identifiers (IDs) of commands.
The parameter immediate is not supported and may be altered or unavailable in the future. true to show the specified commands (and hide the others) immediately, without animating them; otherwise, false.