Empty base layer (viewport-filling placeholder rows)
An optional background layer that renders non-interactive filler rows from the last data row to the bottom of the viewport. Filler rows use the same row height and zebra striping as data rows, so a grid with few or no rows still looks like a full table. Unlike the empty-state overlay in GRID-A03-F03, this layer sits beneath the data and can be shown together with the overlay. It recomputes on resize, data change and…
Planned. This page shows the specification from issue #211. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A fixed-height grid (500px) with 3 rows, empty base layer enabled and striped.
Expected behavior
Filler rows fill exactly the remaining viewport height and continue the striping parity of the last data row. They vanish once data overflows the viewport, and update live on resize and row-count changes. With 0 rows, filler rows render beneath the empty-state overlay. Filler rows cannot be clicked, selected or focused.
Planned API surface
gridOptions.emptyBaseLayer: boolean | { enabled: boolean, striped?: boolean, showColumnLines?: boolean, rowHeight?: number }CSS parts/classes: .wg-empty-base-layer, .wg-filler-row, .wg-filler-row--oddAcceptance criteria
- Filler row count = ceil(remaining viewport height / row height), recomputed on resize, data change and row height change (pending)
- Striping parity continues from the last rendered data row (pending)
- Column lines align with data columns, including pinned sections and during horizontal scroll (pending)
- Filler rows are excluded from selection, navigation, export and row counts (pending)
- No filler rows when data overflows the viewport, and no scrollbar is introduced by the layer (pending)