Skip to main content

Rows-per-page

You can let users choose how many records they want to see per page by providing a dropdown with different options using the perPageOptions() method. This enhances usability for grids with varying dataset sizes.

<?php

require 'ArtiGrid.php';

$grid = new ArtiGrid();
$grid->table('million')
->perPageOptions([5, 10, 25, 50]) // Number of records to display in the Dropdown to change rows per page
->modal();
echo $grid->render();
?>