Skip to content
Discussion options

You must be logged in to vote

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 the Shift key while clicking a new column to sort. But if you specify isMultiSortEvent: (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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@coder-xiaotian
Comment options

@KevinVandy
Comment options

Answer selected by coder-xiaotian
@coder-xiaotian
Comment options

@coder-xiaotian
Comment options

@coder-xiaotian
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants