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)cycleItems
: whether to cycle though the items or not
(true
or false
)Initializer function.
Add aria attributes
Attach evenets to the widget
select list items on click
Select the specified item
Select the previous item
Select the next item
Find the widget structure using the specified configuration
Find the panels using:
role="group"
panels
option (selector relative to the element)after
Find the items using:
role="option"
(relative to the panels)items
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
Handle home key press
Handle end key press
Cleanup the widget and remove remaining references
Install the widget into the JS library
List
The
List
class provides a list of options.author: Julien Ramboz version: 1.0 references: WAI-ARIA listbox role, AOL's Listbox style guide usage: this widget should not be used directly