Data Source & Pagination

Unified data source for client signals and server fetchers with paged or infinite-scroll pagination.

Use DataTableSource::Server with a PageFetcher and set paging to PagingMode::Paged or PagingMode::InfiniteScroll.

  • Server-driven datasets too large for client memory
  • Offset/limit APIs shared with Paginator
  • Scroll-to-load-more UX
  • Build data_source=DataTableSource::server(fetcher, page_size).
  • Set paging to match your API contract.
  • Round-trip sort/filter/quick-search via the same fetcher (server mode).
Server paged source

Footer pagination drives a mock server fetcher returning distinct rows per page.

No rows
Infinite scroll

Server source with scroll-to-load-more pagination.

Infinite scroll empty

Server infinite scroll with an empty dataset shows overlay empty slot only.