Pager

Warning If you use a pager together with a sortable, sortable will not work correctly.

Method enablePager

  • $pageLimit set items for page
$grid->enablePager($pageLimit = 20);

Usage

$mesourApp = //instance Mesour\Components\Application\IApplication
$source = //some <a href="http://components.mesour.com/version3/component/sources/" target="_blank">data source</a> or two-dimensional array

$grid = new Mesour\UI\DataGrid('filterDataGrid', $mesourApp);

$grid->setSource($source);

//! here enable pager extension
$grid->enablePager(6);

$grid->addText('name', 'Name');

$grid->addText('surname', 'Surname');

$grid->addText('email', 'E-mail');

Demo


NameSurnameE-mail
JohnDoejohn.doe@test.xx
PeterLarsonpeter.larson@test.xx
ClaudeGravesclaude.graves@test.xx
StuartNormanstuart.norman@test.xx
KathyArnoldkathy.arnold@test.xx
JanWilsonjan.wilson@test.xx