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 topanels
: a selector pointing to the panelsitems
: a selector pointing to the items
(from within the panels)controls
: how to display the controls (false
: do not display,
true
or after
: display after the panels,
before
: display before the panels,
otherwise use a selector to find them)prev
: whether to display the previous
button or not,
or the selector to the buttonnext
: whether to display the next
button or not,
or the selector to the buttonselectors
: display the selectors (true
, false
or
a selector pointing to the selectors)cycleItems
: whether to cycle though the items or not
(true
or false
)orientation
: orientation of the carousel
(horizontal
or vertical
)Initializer function.
Add aria attributes
Attach evenets to the widget
show previous panel when clicking previous
button
show next panel when clicking next
button
Select the specified item
Find the widget structure using the specified configuration
Find the controls using:
role="toolbar"
controls
options attribute (before
, after,
true,
false`
or css selector)after
Find the previous
control using:
data-role="previous"
(relative to the controls)prev
options (selector relative to the controls)after
Find the next
control using:
data-role="next"
(relative to the controls)next
option (selector relative to the controls)Find the selectors using:
data-role="selector"
(relative to the controls)selectors
attribute (selector relative to the controls)Create elements required by the structure if they are not present
Handle enter key press
Handle page up keypress.
Cycle if at the begining of the carousel and option is activated
Handle page down keypress.
Cycle if at the end of the carousel and option is activated
Handle left key press
Handle up key press
Handle right key press
Handle down key press
Cleanup the widget and remove remaining references
Install the widget into JS library
Carousel
The
Carousel
class provides a carousel widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA listbox role, AOL's Listbox style guide](http://access.aol.com/dhtml-style-guide-working-group/#listbox) usage: Carousel examples
requires: List