-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
DataGridConfigurable
does not allow to edit the label of button column, beside the default Unlabeled column #<index>
#8770
Comments
I believe this actually does work, you just need to clear your localStorage to see it. Have a look at this stackblitz: https://stackblitz.com/edit/github-iz2hnh?file=src/posts/PostList.tsx |
I gave this snippet a try, meaning, I added this component:
and I set this code in the
I see the the label Although it seems a bit an hacky approach, defining a component that accepts |
I agree, but can't think of a better solution for now. I'll leave this issue open in case someone has an idea how to improve this. |
What do you think about this @slax57 ?
It avoids the creation of an extra component and it does the job. |
@silversonicaxel You are right to mention the |
I think the solution you described is acceptable - we just need to document it better. |
Documented in #8928 |
Fixed by #8928 |
What you were expecting:
Using
DataGridConfigurable
I am expecting to have the buttons columns labellable. For instance I would expect thator
would give the proper label on the
<SelectColumnsButton />
component.What happened instead:
The label displayed is
Unlabeled column #<index>
where index is the index of the relative column.Steps to reproduce:
Create a
DataGridConfigurable
, usingSelectColumnsButton
and add in the grid a column containing a react-admin button.Related code:
this is the
PostListActions
componentand this is the
List
component containingDataGridConfigurable
Other information:
Environment
The text was updated successfully, but these errors were encountered: