Creates a menu.
By default, the button has an unnamed <slot>
for its contents, and a named "heading"
<slot>
for its heading text.
Subclasses can override this by passing a different MenuOptions.template in the options,
using menuTemplate to correctly style the custom template.
Optional
options: MenuOptionsThe options for this menu.
Whether to automatically close the menu whenever one of its controls receives an input (e.g. when a radio button is clicked).
Static
observedProtected
_upgradeGenerated using TypeDoc
<theoplayer-menu>
- A menu that can be opened on top of the player.The menu has a heading at the top, with a close button and a heading text.
Attribute
menu-close-on-input
- Whether to automatically close the menu whenever one of its controls receives an input (e.g. when a radio button is clicked).Attribute
menu-opened
(readonly) - Whether the menu is currently open.Slot
heading
- A slot for the menu's heading.