OnSortColumn Change #2954
Unanswered
JayYoungman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to implement sorting into our grid.
Looking at the docs and the commonFeatures.tsx file, it seems to use an OnSortColumnChange prop which takes a setState action.
Trying to use this throws a TS error
Property 'onSortColumnsChange' does not exist on type 'IntrinsicAttributes & GridProps<Row, any>'.\
When inspecting the types in node modules i don't see this anywhere?
Also, adding the sortable: true, to the column the markup for the column header is not correct. The span it creates which should have an svg for the arrow is an empty element. so its not even showing the arrow when clicking the header cell.
Can someone direct me to the correct documentation for implementing sort functionality in the grid.
I'm using "react-data-grid": "7.0.0-canary.47",
Thanks
Beta Was this translation helpful? Give feedback.
All reactions