Patch changes:
ShadowsChanges from V2:
A togglable menu view and related buttons.
Defines a standard Button for 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:
Whether the menu can be openned
A unique string identifier for the button that opens/closes the menu
Whether the menu will be opened/closed by mouseEnter and mouseLeave interaction. Defaults to False.
Whether the menu content sticks to the left or right side of the button
Display a particular icon to the left of the title
Determines how we deal with long titles. If not specified it defaults to WrapAndExpandTitle.
Whether the menu button has a border. If not specified it defaults to True.
Fix the width of the button to a number of pixels
Determines how we deal with long titles. Should we make the menu expand in height to show the full title or truncate it instead?
Represents zero or more entries within the menu content
Menu/pulldown configuration:
attributes: List of (attributes)[#menu-attributes] to apply to the menu.config: Configuration parameters:button: theButtonto open the menuentries: the entries of the menuisOpen: whether the menu is currently open or notfocusAndToggle: the message produced to control the open/closed state and DOM focus