Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
event
: the event
to react totabs
: the tabs specified as a selector relative
to the elementpanels
: the panels specified as a selector relative
to the elementposition
: where to put the tabs (top
or bottom
)Initializer function.
Add aria attributes
Attach evenets to the widget
Attach the event
to the tabs
Update tabindex
properties on tabs when focus
ed
Activate the previous tab
Activate the next tab
Activate the specified tab
Find the widget structure using the specified configuration
Find the tabs using:
role="tab"
tabs
option (selector relative to the element)Find the panels using:
role="tab"
panels
option (selector relative to the element)Handle left key press
Handle up key press
Handle right key press
Handle down key press
Handle page up key press
Handle page down key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Accordions
The
Accordions
class provides an accordions widget.author: Julien Ramboz
version: 1.0
references: WAI-ARIA tab role, AOL's Tab Panel style guide
usage: Accordions examples requires: Collapse