omines / datatables-bundle

DataTables bundle for Symfony
https://omines.github.io/datatables-bundle/
MIT License
251 stars 113 forks source link

How to change default page length? #240

Closed bertoost closed 2 years ago

bertoost commented 2 years ago

I would like to know how to change the default page length of a table.. I found there is a method for this, but I can't find a way how to change this when using $dataTableFactory->createFromType().

Like to hear. Thanks!

maxhelias commented 2 years ago

You can do that in the configuration with datatables.options.pageLength for a general usage or with the third parameters of createFromType with the key pageLength

bertoost commented 2 years ago

Wow! Thats works like a charm. Thanks!