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
, bottom
, left
and right
)Initializer function.
Add aria attributes
Attach evenets to the widget
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
options (relative to the element's parent)Install the widget into the JS library
Tabs
The
Tabs
class provides a tabs widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA tab role, AOL's Tab Panel style guide usage: Tabs examples requires: Accordions