-
-
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
Use icons as field labels in Datagrid #4848
Comments
Definitely useful! I actually need it, too. Marking it as a feature request, and working on an implementation. |
By the way, it would be nice if the implementation aligns the icon for you. To get the correct position, I had to add the following style to the icon: columnIcon: {
marginLeft: '3px',
verticalAlign: 'text-top',
}, |
I just though about a better solution: the |
@deluan That's what I did, see attached PR. |
Fixed by #4852 |
Is your feature request related to a problem? Please describe.
I want to show an icon as a column header in Datagrid, like this:
I can achieve this with:
The problem is that the
FieldTitle
component always tries to translate the field'slabel
, and gives this error in the console:Describe the solution you'd like
Maybe we could have a new property in the Field that accepts a component as label, instead of using the
label
itself (iconLabel
?).Describe alternatives you've considered
Can't think of anything else.
The text was updated successfully, but these errors were encountered: