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

[RFC] Only allow a string for headerClassName #274

Closed
oliviertassinari opened this issue Sep 12, 2020 · 1 comment · Fixed by #1778
Closed

[RFC] Only allow a string for headerClassName #274

oliviertassinari opened this issue Sep 12, 2020 · 1 comment · Fixed by #1778
Assignees
Labels
breaking change component: data grid This is the name of the generic UI component, not the React module! RFC Request For Comments
Milestone

Comments

@oliviertassinari
Copy link
Member

For simplicity, I think that headerClassName could only accept a string. Developers are used to this constraint to React. I would also argue they we have thought them to use the clsx helper.

@oliviertassinari oliviertassinari added breaking change component: data grid This is the name of the generic UI component, not the React module! labels Sep 12, 2020
@oliviertassinari oliviertassinari added this to the beta milestone Mar 26, 2021
@dtassone
Copy link
Member

dtassone commented May 24, 2021

  1. Make the same type as GridColDef.cellClassname, ie add function support, and string
  2. Refactor type name
  3. Remove array type

@DanailH DanailH self-assigned this May 27, 2021
@oliviertassinari oliviertassinari added the RFC Request For Comments label Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change component: data grid This is the name of the generic UI component, not the React module! RFC Request For Comments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants