-
Notifications
You must be signed in to change notification settings - Fork 2.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
Updated docs and status regarding headerRenderer #1710
Comments
can confirm. This happens on 5.0.5 as well as 6.1.0 (they are the versions I tried). After a bit of digging the source, I found the following. When u set I couldnt find the code of 6.1.0 on github so i tried looking into the minified file and found this
the this has been fixed on the codebase with this commit but seems like it has not yet arrived to the npm package. so for time being, use the following workaround. when u pass headerRenderer to your column, instead of this
do this
this passes a valid react object to the |
Since I only needed custom styling for different columns I ended up discovering and using an undocumented cell property called |
Closing in favor of #2575 |
Yes, I have seen lot's of issues and PR related to this, however, it is still not clear for me what if the current status just to mention a few Headers custom component #410 Pass props to custom sortable header renderer #1148 Pass headerRenderer to SortableHeaderCell when column is sortable #572 looking at this it seems is possible to use a headerRenderer and Sortable: True but looking at the current state of the code here it seems is not?
Which version of React JS are you using?
✅ Officially supported ✅
☣️ Not officially supported, expect warnings and errors ☣️
Which browser are you using?
✅ Officially supported ✅
I'm submitting a ...
Issue Details
Current behavior
If I pass a custom headerRenderer and Sortable as true I get the following error:
If I pass the headerRenderer and Sortable as false I get no error and it works correctly.
Desired behavior
I'm willing to help if needed with a PR for docs or even code, but I would like to know first the current status of this as is not clear on the current docs. I have provided an example repo that test with the latest react version and the officially supported v15.4.x
I created an example repo that demonstrates the issue here: Example repo and I can see more details about the error there:
If you change sortable to false it should correctly
I also created a branch that uses the officially supported react version(15.4.x) and the error there is on the console:
And btw thanks for this awesome grid it has really helped us deliver great value to our clients.
The text was updated successfully, but these errors were encountered: