Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 668 Bytes

pagination.md

File metadata and controls

34 lines (22 loc) · 668 Bytes

Table of contents

Pagination

You can disable pagination, if you don't want to use it:

$datagrid->setPagination(false);

You can set custom items count per page:

$datagrid->setItemsPerPageList([10, 20, 50, 100, 200, 500]);

You can set default items per page:

$datagrid->setDefaultPerPage(50);

Custom template

You can set custom template for pagination:

$datagrid->setCustomPaginatorTemplate(__DIR__ . '/templates/datagrid/pagination.latte');

See DatagridPaginator/templates/data_grid_paginator.latte for default template as an example.