Skip to content
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] Rename hideToolbar prop to showToolbar #706

Conversation

DanailH
Copy link
Member

@DanailH DanailH commented Dec 8, 2020

Following up to the Density selector PR #606 I'm renaming the hideToolbar prop to showToolbar to make the toolbar opt-in.

This decision was based on both discussions that happened on the #606 PR and in Slack.

@DanailH DanailH added the priority: important This change can make a difference label Dec 8, 2020
@DanailH DanailH self-assigned this Dec 8, 2020
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the documentation, I think that we could document displaying the de density toolbar before the density prop. How about this structure?

Density selector

How do enable the toolbar,

Demo

Have a note about how to hide the selector when the toolbar is visible, no demo for it

Density prop

Demo

@DanailH
Copy link
Member Author

DanailH commented Dec 9, 2020

@mbrookes can I merge this?

@DanailH DanailH merged commit 8dd3d8b into mui:master Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: important This change can make a difference
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants