-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
cellClassName doesn't work for child components #4165
Comments
Changing But you are right cellClassName doesn't get applied. |
thx for reply. className works but the result is different. Documentation (Field Components -> Styling Fields) clearly states that the first code fragment from the op post will work and change the cell appearance. So i try to figure out whether im wrong or the mentioned documentation part is irrelevant due to some other reasons. |
I don't think you are wrong. It looks like a bug to me |
I wouldn't close it. Leave it open in order for the people at marmelab have a chance to look at it. |
sorry, misunderstood the meaning of issue closing |
So let's say that we won't fix it, and for your use case you must use a custom https://marmelab.com/react-admin/List.html#body-element I'll just add a warning to the doc about that special case. |
i can't make the example above to work. PriceField doesn't apply cellClassName style to the DataGrid cell. It will work if I use
(actually
fontWeight: 'bold'
doesn't work too, i usedcolor: 'red'
)since i want to dynamically change cell appearance based on its content, i desperatelly look for a tip.
The text was updated successfully, but these errors were encountered: