-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[DataGrid] Update column menu API components
-> slots
#7999
[DataGrid] Update column menu API components
-> slots
#7999
Conversation
Column menu components -> slots
Netlify deploy previewNetlify deploy preview: https://deploy-preview-7999--material-ui-x.netlify.app/ Updated pagesThese are the results for the performance tests:
|
Was the decision to entirely drop the For me the main argument in favor of keeping both was to let people use the same prop name across the whole MUI stack. |
It wasn't discussed, but the motivation behind going ahead with
That's a very good point, but shouldn't the end goal be to port the users to use |
Yes, but until the MUI Core library support And then when the MUI Core libraries support |
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.
I don't see any problem with already supporting only slots
for the column menu. For components
the scenario is different, users may already have customizations using this prop, but the column menu was recently added.
Should we consider this a breaking change? No need to update the migration guide, only the CHANGELOG for users already using the new menu.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Should we move to merge this? |
Alright, I will then assume then if we need to open the interface of
I guess we can, we already see use-cases where it could be helpful and we should finalize the API soon. |
Co-authored-by: Matheus Wichman <matheushw@outlook.com> Signed-off-by: Bilal Shafi <bilalshafidev@gmail.com>
Final part of #6986
In continuity of #7882
Updated docs: https://deploy-preview-7999--material-ui-x.netlify.app/x/react-data-grid/column-menu/
Approach Followed:
Simple replace
components
and other references toslots
. Didn't deprecate or list in breaking changes as the API was initially released in alpha.