Skip to content

Server-side paginated table

A table whose pages are requested from the server (offset and limit), with an adjustable page size, navigation buttons and an announced “21–40 of 312” summary.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

When a list has hundreds of rows (orders, members, invoices), you do not load them all: this table requests each page from an async fetchPage(offset, limit) function returning the total and the rows, to be replaced by your API call (the example generates 312 orders). A drop-down sets the rows per page (10, 20 or 50), four buttons go to the first, previous, next and last page and are disabled at the ends, and the summary and page indicator are updated and announced to screen readers. The area is marked aria-busy while loading and rows are rebuilt from a template, without innerHTML. Without JavaScript the first server-rendered page is shown. Navigation in a named nav, 44 px buttons with accessible names and a visible focus, AA contrast in light and dark mode, no horizontal scrolling from 360 px. Example: an online shop's merchant area.

Code

Loading the code…

The code of this component in

Archive contents

tableau-pagination-serveur-html-tailwind.zip3 files · 6 Ko

  • index.html21 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A documentation table showing where a kit or component has been tested (static HTML, WordPress, Elementor, Webflow, v0…), with status, last test date and a remark, filterable by status.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A table of the towns and postcodes a tradesperson covers, with response time and travel fee, filtered by search and by zone.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A timetable table sorted by column and filtered with level and free-place chips, whose rows each become a card on phones.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A filterable table whose visible rows export in one click to a CSV file that opens cleanly in Excel or LibreOffice.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component