Components
← All components

Data Grid

stimeo--data-grid

Adds column sorting, row selection and keyboard movement between cells to a table.

  • Core
  • Grid

Makes a table workable from the keyboard, following the WAI-ARIA Grid pattern. Tab stops on the table once, and from there the arrow keys move between cells. Home and End go to the ends of a row, and with Ctrl to the start and end of the whole table. Enter or Space on a header cycles the sort through none, ascending and descending, and which way it is sorted is announced. With selection turned on, the focused row can be selected and deselected. Actually sorting and redrawing the rows stays with you: this reports what was asked for and leaves the data alone.

running
Name Role Location
Ada Lovelace Engineer London
Grace Hopper Admiral New York
Alan Turing Researcher Manchester
Katherine Johnson Mathematician Hampton

Keyboard

KeyAction
→ / ← Move to the next / previous cell in the row. Under RTL the two swap.
↓ / ↑ Move to the next / previous cell in the column (headers included).
Home / End Move to the first / last cell of the row.
Ctrl+Home / Ctrl+End Move to the first / last cell of the grid.
Enter / Space Cycle a header's sort, or toggle the focused row's selection.