-
-
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] Add recipe showing how to toggle detail panels on row click #14666
Conversation
Deploy preview: https://deploy-preview-14666--material-ui-x.netlify.app/ Updated pages: |
@romgrk should we add this recipe? ^_^ |
docs/next-env.d.ts
Outdated
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.
What caused this change?
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.
probably be caused while running some scripts, removed this change 👍
})); | ||
} | ||
|
||
const rows = [ |
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.
Any way to use one of the generated datasets? (employees or commodities)
Less lines of code is better.
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.
Initially, I tried to refactor all this but was unable to find a more concise way to do it
after seeing that same approach is used in other demos https://mui.com/x/react-data-grid/master-detail/
I ended up doing the same for this demo also.
Fixes #7596
Preview