Card layout for narrow screens (experimental candidate)
Below a container width threshold, the grid can render each row as a stacked card of label-value pairs instead of a table, which improves readability on phones. This is a candidate feature published as experimental to gather feedback.
Planned. This page shows the specification from issue #205. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A resizable container at 900px in table mode, with an experimental badge.
Expected behavior
Crossing the breakpoint switches to cards and fires layoutmodechange. Sort and filter state persist, and selection and keyboard focus map to the same row.
Planned API surface
responsiveLayout option ({ mode: 'cards', breakpoint })cardTemplate optioncolumn.cardRole option ('title'|'subtitle'|'field'|'hidden')layoutmodechange eventAcceptance criteria
- Card mode preserves sort, filter, selection and the focused row index (pending)
- Columns are rendered according to cardRole, with hidden columns omitted (pending)
- Virtualization works with variable card heights (pending)
- Switching modes does not refetch data (pending)
- The feature is flagged experimental in the API reference (pending)