V8 - Pin row to the top of the table, regardless of sorting #5039
Unanswered
george-van-heerden
asked this question in
Q&A
Replies: 1 comment
-
@george-van-heerden any update on this please? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Firstly I'd like to say thanks for the wonderful migration guide, it helped me to migrate our tables from V7 with relative ease.
All our tables are relatively simple, but we have one table that requires the top record to stay at the top regardless of sorting.
Previously with version 7 we used custom sorting functions. When defining a column we used the sortType function to pass a custom sorting function:
It was pretty hacky, and I didn't like the solution, but it got the job done. Now with V8 we aren't able to use the same method since the sorting functions no longer have a prop to determine the sorting direction:
According to this discussion, it is a feature that is going to be implemented eventually.
Having said all of this, I have three questions:
Beta Was this translation helpful? Give feedback.
All reactions