question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

disable rowsPerPageOptions or feed it less than 3 values

See original GitHub issue

How can I disable rowsPerPageOptions? I tried messing with the custom footer but it did not work for me.

Thus far the only thing that has worked is to feed rowsPerPageOptions an nonarray value, which I do not prefer because it results in an error.

What I am looking for is to have there be no options to change the amount of rows, so even if I try putting just rowsPerPageOptions: [5] I end up getting the dropdown having the values of [5,15,100].

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

2reactions
simplenotezycommented, Oct 26, 2021

@gabrielliwerant However, that will generate this error now:

Material-UI: The page size `100` is not preset in the `rowsPerPageOptions`. Add it to show the pagination select. 
1reaction
KristenKatonacommented, Jan 14, 2019

I second this request. It would be nice to have the option to disable this feature when/if desired using some method other than forcing it to throw an error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

disable rowsPerPageOptions or feed it less than 3 values
Thus far the only thing that has worked is to feed rowsPerPageOptions an nonarray value, which I do not prefer because it results...
Read more >
Remove "Rows per page" in the component TablePagination
For the property rowsPerPageOptions one says: Customizes the options of the rows per page select field. If less than two options are ...
Read more >
How to remove virtual additional shop pages (pagination)
First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included...
Read more >
The only pagination you'll ever need ...
With value containing all my pages, I can accomplish that with value.slice(page - 3, page + 2) ;. And the complete calculation (inc....
Read more >
Learning System Properties - SAP Help Portal
Creating Default Values in CONNECTORS System Properties. ... sonable number to keep your database growth under control. The attachments.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found