Patch changes:
Changes from V3:
A togglable menu view and related buttons.
Whether the menu can be opened
Whether the menu will be opened/closed by mouseEnter and mouseLeave interaction. Defaults to False.
Use Button with default styles as the triggering element for the Menu.
Use Button as the triggering element for the Menu.
Use ClickableText as the triggering element for the Menu.
Use ClickableSvg as the triggering element for the Menu.
Use ClickableSvg as the triggering element for the Menu without a dropdown indicator
Warning: Tooltip keyboard events are not fully supported!
A unique string identifier for the button that opens/closes the menu
Makes the menu behave as a disclosure.
For more information, please read Disclosure (Show/Hide) pattern.
You will need to pass in the last focusable element in the disclosed content in order for:
Makes the menu behave as a dialog.
For more information, please read Dialog pattern.
You will need to pass in the first and last focusable element in the dialog content in order for:
Align the menu popover on the right side of the triggering button.
Right (this property) is the default behavior.
Represents zero or more entries within the menu content
Menu/pulldown configuration:
focusAndToggle: the message produced to control the open/closed state and DOM focusattributes: List of (attributes)[#menu-attributes] to apply to the menu.entries: the entries of the menu