react-data-grid
react-data-grid copied to clipboard
Cannot add sort functionality
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