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
How do I import useCombinedRefs (Implementing draggable columns) #2267
Comments
Hey I've found what the issue is. I've found a work around but I don't think it's a very good way. |
|
@yashjais18 Thanks for your assistance! Your approach worked but I then ran into another issue down the road. I've decided to go with Prime Faces' Data Table for now. @nstepien Thanks for providing clarity. Maybe a note should be made in the documentation regarding the origin of useCombinedRefs for anyone who is unaware. |
Here is the link for |
Hello! |
I am trying to implement the draggable columns with react-data-grid based on this example: https://github.com/adazzle/react-data-grid/blob/canary/stories/demos/ColumnsReordering.tsx
I see that this example requires creating a DraggableHeaderRenderer file, so I have copied the following file into my project and converted it to javascript: https://github.com/adazzle/react-data-grid/blob/canary/stories/demos/components/HeaderRenderers/DraggableHeaderRenderer.tsx
My issue is that I do not know where to import useCombinedRefs from. It is not exported from react-data-grid. I see in the repo that it resides in src/hooks.
I have tried the following:
Thanks to anyone who can help.
Here is my code:
DraggableHeaderRenderer.js
TestDataGrid.js
The text was updated successfully, but these errors were encountered: