What is the defference of options "enableMultiSort" and "isMultiSortEvent" #4890
Answered
by
KevinVandy
coder-xiaotian
asked this question in
Q&A
-
I want to use the multi-sort feature, but when I set the option It seems the |
Beta Was this translation helpful? Give feedback.
Answered by
KevinVandy
Jun 1, 2023
Replies: 1 comment 5 replies
-
manualSorting means that all client side sorting is turned off. This is useful if you are already sorting data on your server. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's some api docs about this, though guess they could be more clear
https://tanstack.com/table/v8/docs/api/features/sorting#ismultisortevent
https://tanstack.com/table/v8/docs/api/features/sorting#enablemultisort
enableMultiSort
allows or turns it off completely.isMultiSortEvent
allows you to customize when an action causes multi-sort, or when an action just causes to switch to a new single sort. By default, multi-sort is only occurs when the user holds down theShift
key while clicking a new column to sort. But if you specifyisMultiSortEvent: (e) => true
, that will override and make any new sort click always a multi-sort event, no extra keys need to be pressed by the user.