Disable pagination controls but keep the pagination control with data when row selection is made #233
Unanswered
beingmeak05
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can disable just the pagination buttons using props in the Explained briefly in the MRT props here: https://www.material-react-table.com/docs/guides/pagination#customize-pagination-components You might want something like this? muiTablePaginationProps={{
backIconButtonProps: {
disabled: isSomeRowSelected,
},
nextIconButtonProps: {
disabled: isSomeRowSelected,
},
}} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Kevin,
First of all, your material-react-table is just awesome!
I would like to disable pagination control when there is a row selection or page selection is made. Right now, when I try to programmatically disable the pagination, the control tries to list down all the rows, instead, I need it to display (example 10 rows) the rows list as it is and disable just the pagination controls until row selection remains true.
Beta Was this translation helpful? Give feedback.
All reactions