Skip to content

Commit

Permalink
Add recordsPerPage config in the config_list.yaml (#185)
Browse files Browse the repository at this point in the history
* Add recordsPerPage config in the config_list.yaml

In a big table with many records we get out off memory and can't rander the page without a limit of records per page.

* Update DefaultBehaviorDesignTimeProvider.php
  • Loading branch information
pvullioud authored and Luke Towers committed Oct 13, 2017
1 parent 1d98767 commit f3f7288
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion widgets/DefaultBehaviorDesignTimeProvider.php
Expand Up @@ -130,6 +130,7 @@ protected function getListControllerDefaultConfiguration($controllerModel, $cont
'noRecordsMessage' => 'backend::lang.list.no_records',
'showSetup' => true,
'showCheckboxes' => true,
'recordsPerPage' => 20,
'toolbar' => [
'buttons' => 'list_toolbar',
'search' => [
Expand Down Expand Up @@ -186,4 +187,4 @@ protected function getControllerlUrl($pluginCodeObj, $controller)
{
return $pluginCodeObj->toUrl().'/'.strtolower($controller);
}
}
}

0 comments on commit f3f7288

Please sign in to comment.