muiPaginationProps does not include rowsPerPage
aaron-parisi-turngate opened this issue · 2 comments
aaron-parisi-turngate commented
material-react-table version
v2.13.0
react & react-dom versions
v16.8.0
Describe the bug and the steps to reproduce it
I am trying to set the number of rows per page via a prop and am unable to set rowsPerPage
on muiPaginationProps
even though MUI Table Pagination docs show rowsPerPage
. I can set rowsPerPageOptions
but that's not what I'm trying to do.
Minimal, Reproducible Example - (Optional, but Recommended)
muiPaginationProps={{
rowsPerPageOptions: [...]
rowsPerPage: 5 // type error
}}
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
None
Terms
- I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
aaron-parisi-turngate commented
I see that I can use initialState.pagination
to control rows per page.
https://www.material-react-table.com/docs/guides/state-management#populate-initial-state
KevinVandy commented
This is by design to force you to use the proper way through state