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 support for headerRowClass. #3405

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Agent009
Copy link

Works similar to rowClass but gets applied on the header row.

<DataGrid ... rowClass={rowClass} headerRowClass={headerRowClass} />

@amanmahajan7
Copy link
Contributor

Can we not target header row with a grid class?

<DataGrid className="custom-header" ... />
.custom-header > .rdg-header-row {
  ...
}

@Agent009
Copy link
Author

Agent009 commented Jan 4, 2024

Can we not target header row with a grid class?

<DataGrid className="custom-header" ... />
.custom-header > .rdg-header-row {
  ...
}

Can do, but that doesn't allow for using pre-defined classes from other systems such as Tailwind. The dedicated property was added to cater for this.

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.

2 participants