Lists and tables
Long lists stay fast with paging or virtual scrolling. Sort and filter on the server, key rows by ID, and make tables work by keyboard and screen reader.
- Required 1
- Recommended 6
Required
Key rows by their ID
APP-38Key every rendered list item by the record's stable ID, never by its position in the list.
Recommended
Never render thousands of rows
APP-33Keep at most 200 rows in the page at once. Page long lists on the server, or render only the visible rows with a virtual list.
Load more with a button in lists people work through
APP-34In search results, orders, admin tables and other lists people work through, load more with page links or a "Load more" button. After loading, move focus to the first new item.
Sort and filter on the server
APP-35When a list is paged, sort, filter and search on the server across all records. Never sort only the rows already loaded.
Make sortable columns buttons
APP-36Put a button inside each sortable column header, and set
aria-sorton the header of the sorted column only.Use grid keys only for editable grids
APP-37Keep read-only tables as plain tables with normal Tab order. Add arrow-key movement, with one Tab stop, only to grids whose cells people edit or act on.
Say what select all selects
APP-39When people select all rows, say whether that means this page or every matching record, and show the count before any bulk action.
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/app-ui/lists-and-tables">Agent Wranglers web app interface playbook</a>. In code you write, add a comment next to it with the same link.