Is there another way to change how many rows are shown in the table other than overwriting the list.blade.php file?
Asked
Active
Viewed 1,371 times
2 Answers
4
It's a little-known API method, but you can do that by calling this in your EntityCrudController:
$this->crud->setDefaultPageLength(10); // number of rows shown in table view

tabacitu
- 6,047
- 1
- 23
- 37
0
A lot of time has passed. At the moment with the current version of Backpack (v 4.1.X) there is a setting in the configuration file in config/backpack/crud.php
named defaultPageLength
that controls the page length globally. If page length for a single CRUD controller should be changed, then $this->crud->setDefaultPageLength(50)
is still the way to go.
More details can be found here: https://backpackforlaravel.com/docs/4.1/crud-api#page-length

o15a3d4l11s2
- 3,969
- 3
- 29
- 40