-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][TablePagination] Implement slotProps
pattern for the actions and the select slots
#39353
[material-ui][TablePagination] Implement slotProps
pattern for the actions and the select slots
#39353
Conversation
Netlify deploy previewhttps://deploy-preview-39353--material-ui.netlify.app/ @material-ui/core: parsed: +0.08% , gzip: +0.08% Bundle size reportDetails of bundle changes (Toolpad) |
Awesome! Could this also disable the page size dropdown as well? |
^ Done! |
Awesome, thank you! |
Hey @anle9650! Thanks for working on this 😊 I think it's a good addition 🎉 May I ask you to also add the |
@DiegoAndai just added those! |
Thanks @anle9650! I've discussed this with some members of the team, and we would prefer to implement the We would have to add the
Do you have time to work on it? I can provide guidance for it 😊 Also, I want to bring @cherniavskii into the conversation as the DataGrid owner, as these API changes would impact the DataGrid's
|
Hi @DiegoAndai, |
@DiegoAndai just made those changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice @anle9650! thanks
I think we're only missing a couple details, almost there 🚀
b53c20a
to
751aab9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @anle9650! thanks for keeping working on this
I added a couple more comments/questions to ensure that we don't break developer's apps with this change 😊
4dcf345
to
aff5479
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for the effort!
slotProps
pattern for first, last, next, previous, select propsslotProps
pattern for the actions and the select slots
Material-ui v5.15.18 introduced a new prop injected to `PaginationAction`, `slotProps`, which isn't supposed to be passed down to the `Pagination` component. Refs mui/material-ui#39353 Closes `<Pagination>` logs a warning #9470
Resolves #39336