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

Added expandedPanel to Datagrid styles #6596

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

mjomble
Copy link
Contributor

@mjomble mjomble commented Sep 20, 2021

I have a project where I needed to use expandable Datagrid rows and have a different background color on the expanded panel row that appears.

For this purpose, it would be very useful to be able to override the CSS class of these rows, which this PR enables.

Not quite sure about the name expandedPanel. I also thought about expandedRow, but that seemed ambiguous as it could also mean the original always-visible row the user clicked on in order to make the second row appear.

Also, while styling the row element was necessary in my case, other people may need to style the cell instead. Maybe we should make both overridable, but I didn't do that yet.

@fzaninotto
Copy link
Member

Nice! As this is a new feature, could you please open a PR against the next branch instead?

@mjomble
Copy link
Contributor Author

mjomble commented Sep 22, 2021

Closing in favor of #6606 targeting the next branch

@mjomble mjomble closed this Sep 22, 2021
@djhi djhi reopened this Oct 15, 2021
@djhi djhi added this to the 3.19 milestone Oct 15, 2021
@djhi djhi merged commit 179dd1d into marmelab:master Oct 15, 2021
@djhi
Copy link
Contributor

djhi commented Oct 15, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants