Skip to content

Pagination

Tables paginate automatically, with 10 rows per page and choices of 10, 25, 50, and 100.

UsersTable::make('users')
->data($users)
->pageSize(25)
->pageSizeOptions([10, 25, 50]);

InertiaX includes the default page size in the available choices. Eloquent queries paginate in the database; collections paginate in memory.

For a bounded dataset:

UsersTable::make('users')->data($users)->pagination(false);

Disabling pagination sends the full result to the browser.

Search, filters, sorting, and page-size changes reset the table to page 1. The current page is stored in the URL when using the Inertia integration.

See Table API for input validation and out-of-range pages.