Replies: 2 comments 4 replies
-
I can add that as a configuration option for the plugin, but one question that pops up is what should the default state be before any interactions are enabled? Should it act as usual where there is no sorting before interactions? |
Beta Was this translation helpful? Give feedback.
3 replies
-
@blerrgh This should now be addressed with #82 in v0.15.3. Simply customize the ...
sort: addSortBy({
toggleOrder: ['asc', 'desc'],
}),
... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to make a table where clicking the headers only switches between ascending and descending sorts and never "clears." Is there an easy way to do that?
I don't mind doing something like
on:click={() props.sort.order = (props.sort.order === 'asc') ? 'desc' : 'asc' }
But it might be even better to have an option that can passed into the plugin options
Or something similar?
Beta Was this translation helpful? Give feedback.
All reactions