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.
Optionaloptions: 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).
StaticobservedProtected_upgradeClose the menu.
Open the menu.
<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.