Try loading as AMD module or fall back to default loading
The actual widget class
Default options for the widget
panels
: 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 buttonplay
: whether to display the play
button or not,
or the selector to the buttonpause
: whether to display the pause
button or not,
or the selector to the buttonselectors
: display the selectors (true
, false
or
a selector pointing to the selectors)event
: the event
to react tocycleItems
: whether to cycle though the items or not
(true
or false
)autoplay
: whether to auto start the slideshow animation or notduration
: the delay before switching to the next item (in ms)orientation
: orientation of the carousel
(horizontal
or vertical
)Initializer function.
Add aria attributes
Attach evenets to the widget
Select an item
Play the slideshow
Pause the slideshow
Auto play
Find the widget structure using the specified configuration
Find the play
control using:
data-role="play"
(relative to the controls)play
option (selector relative to the controls)Find the pause
control using:
data-role="pause"
(relative to the controls)pause
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
see Carousel key handling
Handle space key press
Handle left key press
Handle right key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
Slideshow
The
Slideshow
class provides a slideshow widget.author: Julien Ramboz version: 1.0 references: WAI-ARIA listbox role, AOL's Listbox style guide usage: Slideshow examples requires: Carousel