Optional
options: MenuGroupOptionsStatic
observedProtected
_upgradeCloses the menu with the given ID.
If no ID is given, then the entire menu group is closed.
If the given menu has opened one or more submenus, then those are also closed. If the last open menu is closed, then the menu group also becomes closed.
Optional
menuId: stringThe ID of the menu to close.
True if the given menu was found and closed.
Open the menu with the given ID.
If no ID is given, the first menu in the group is opened.
If there's already an open menu, then the new menu is opened as a "submenu". When it closed, the previous menu is opened.
Optional
menuId: stringThe ID of the menu to open.
Optional
opener: HTMLElementThe control that opened the menu. When the menu is closed, focus is moved back to this control.
True if the given menu was found.
Generated using TypeDoc
<theoplayer-menu-group>
- A group of Menus.This can contain multiple other menus, which can be opened with MenuGroup.openMenu. When a MenuButton in one menu opens another menu in this group, it is opened as a "submenu". When a submenu is closed, the menu that originally opened it is shown again.
Attribute
menu-opened
(readonly) - Whether any menu in the group is currently open.