Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
groups
: a selector pointing to the groupsitems
: a selector pointing to the itemsInitializer function.
Add aria attributes
Attach evenets to the widget
Select the previous item
Select the next item
Select the specified item
Close menus
Find the widget structure using the specified configuration
Find the toolbar groups, specified in one of the following ways:
role="group"
groups
option, specified as a selectorFind the toolbar items, specified in one of the following ways:
items
option, specified as a selectorGet the toggle for a specific item
Get the submenu for a specific item
Handle left key press
Handle right key press
Handle down key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Toolbar
The
Toolbar
class provides a simple toolbar widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA toolbar role, AOL's Tool Bar style guide usage: Toolbar examples