Listbox"
From Documentation
Line 16: | Line 16: | ||
| Focus on Listcells or Listheaders | | Focus on Listcells or Listheaders | ||
|- | |- | ||
− | | | + | | Spacebar (on listitem) |
− | | If the checkmark is enabled, pressing Enter/Spacebar will | + | | If the checkmark is enabled, pressing Spacebar will toggle selection of the listitem. |
+ | |- | ||
+ | | Enter / Spacebar (on listgroup) | ||
+ | | pressing Enter/Spacebar will open or close the listgroup. | ||
+ | |- | ||
+ | | Enter / Spacebar (on "select all" checkbox) | ||
+ | | pressing Enter/Spacebar trigger select / unselect all. | ||
|} | |} |
Revision as of 04:47, 12 July 2022
Since 9.5.0
- Available for ZK:
Label a Component
To name a component with ARIA attribute by adding the aria-label
client attribute to the component, please refer to ZK_Developer's_Reference/Accessibility#Specify_ARIA_Attributes
You need to label a Listbox first, then ZK will add aria-labelledby
on the z-focus-a
button.
Keyboard Support
ArrowUp / ArrowDown | Select Listitems or focus on Listheaders. |
ArrowLeft / ArrowRight | Focus on Listcells or Listheaders |
Spacebar (on listitem) | If the checkmark is enabled, pressing Spacebar will toggle selection of the listitem. |
Enter / Spacebar (on listgroup) | pressing Enter/Spacebar will open or close the listgroup. |
Enter / Spacebar (on "select all" checkbox) | pressing Enter/Spacebar trigger select / unselect all. |