generic-listbox

WAI ARIA Practices

A listbox widget presents a list of options and allows a user to select one or more of them.

API:

name detail
selected-changed number
name type
selected number
label string
name type
selected number
value string
name description
default Provide an unordered list element with list item children as lightdom

Usage:

The listbox requires a ul with li children, as well as a label attribute.

Default:

Show code

  • item 1
  • item 2
  • item 3
  • item 4
  • item 5
  • item 6
  • item 7
  • item 8
  • item 9
  • item 10
  • item 11
  • item 12
  • item 13
  • item 14
  • item 15
  • item 16
  • item 17

Selected:

Show code

  • item 1
  • item 2
  • item 3
  • item 4
  • item 5
  • item 6
  • item 7
  • item 8
  • item 9
  • item 10
  • item 11
  • item 12
  • item 13
  • item 14
  • item 15
  • item 16
  • item 17