Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configurable number of rows in list view #55

Closed
tabacitu opened this issue Jul 8, 2016 · 1 comment
Closed

Configurable number of rows in list view #55

tabacitu opened this issue Jul 8, 2016 · 1 comment
Milestone

Comments

@tabacitu
Copy link
Member

tabacitu commented Jul 8, 2016

You should be able to choose the default number of rows on a given CRUD panel. This is easily done by adding "pageLength": 50, to list.blade.php when the DataTable is instantiated.

Proposed syntax:

$this->crud->setDefaultListSize(50);
@tabacitu tabacitu added this to the 2.0 milestone Jul 8, 2016
tabacitu added a commit that referenced this issue Jul 22, 2016
@tabacitu
Copy link
Member Author

Starting with CRUD 2.1 the value:

  • defaults to 25 (hardcoded);
  • can be overwritten in the crud config file for all CRUD panels: 'default_page_length' => 25,;
  • can be overwritten in a CRUD panel's constructor using $this->crud->setDefaultPageLength(10); for that particular CRUD panel only;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant