Represents a command to be displayed in a Menu object.
Creates a new MenuCommand object.
The DOM element that will host the control.
The set of properties and values to apply to the new MenuCommand.
Gets or sets a value that indicates whether the MenuCommand is disabled.
Gets the DOM element that hosts the MenuCommand.
Adds an extra CSS class during construction.
Gets or sets the Flyout object displayed by this command. The specified flyout is shown when the MenuCommand's button is invoked.
Gets a value that indicates whether the MenuCommand is hidden or in the process of becoming hidden.
Gets the element identifier (ID) of the command.
Gets or sets the label of the command.
Gets or sets the function to be invoked when the command is clicked.
Gets or sets the selected state of a toggle button.
Gets the type of the command.
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.
Disposes this control.
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.