I am implementing a data gird pattern for an interactive HTML table. The header cells can be used to change the appearance of the data.
The ARIA pattern (see Example 2) uses Spacebar
key to sort rows, but I would like to add some custom buttons to control other aspects, like filtering rows.
How would a user access those custom buttons in the table header?
Some options that I have considered:
Alt
+Spacebar
to activate the custom button. This only works if there is only one custom button and the shortcut might not be discoverable.Tab
to move into custom button list. Works with multiple buttons and can probably be discovered by poking around, but the expectation is thatTab
moves out of the table.Alt
+ArrowDown
to move into custom button list. This is what LibreOffice Calc uses to access quick-filter. Not sure it's discoverable.- Give up and put those buttons outside the table altogether.
Any pointers to relevant documentation or examples would be appreciated.