WarUI

Cursor-based and unknown-total pagination

GRID-A19-F14P2beyond-baselinePlanned

Supports backends that return next/previous cursors instead of offsets, or that cannot cheaply count total rows. The pager adapts by hiding unknown totals and the page jump while keeping next/previous navigation.

Planned. This page shows the specification from issue #199. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A mock cursor API with unknown total, showing page 1 with 'Rows 1–25 of many'.

Expected behavior

Next uses the returned cursor. Last and the page jump are hidden when the total is unknown. Changing the page size restarts from the first cursor. Previously visited pages come back from a cursor history stack.

Planned API surface

paginationMode:'cursor'dataSource.getPagecursor.nextcursor.previoustotalRowCount:nullonPageChange

Acceptance criteria

  • The pager shows 'of many' (localizable) when the total is null (pending)
  • Last and page jump are hidden or disabled in unknown-total mode (pending)
  • Next is disabled when the response has no next cursor (pending)
  • Back navigation reuses the cached cursor history (pending)