This component is responsible for containing and managing menu items and submenus. The menu is ARIA friendly by ensuring the correct ARIA properties are set, and enabling keyboard navigation when it is focused.
You can use this component if you'd like to build out a custom settings menu. If you're looking
to only customize the content of the settings see
vime-settings, and if
you want an easier starting point see
|Whether the menu is open/visible.|
|Emitted when the menu has closed/is not active.|
|Emitted when the currently focused menu item changes.|
|Emitted when the menu items present changes.|
|Emitted when the menu is open/active.|
focusOnOpen() => Promise<void>
This should be called directly before opening the menu to set the keyboard focus on it. This is a one-time operation and needs to be called everytime prior to opening the menu.
getController() => Promise<HTMLElement>
Returns the controller responsible for opening/closing this menu.
getFocusedMenuItem() => Promise<HTMLVimeMenuItemElement>
Returns the currently focused menu item.
|Used to pass in the body of the menu which usually contains menu items, radio groups and/or submenus.|
CSS Custom Properties
|The background color the menu.|
|The text color within the menu.|
|The font size of text within the menu.|
|The font weight of text within the menu.|
|The position in the UI z-axis stack inside the player.|
Built with StencilJS