We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have used one coulmn to sort the list,but Is there any way to get the column of sort? like list.getCurrentSortColumn()
list.getCurrentSortColumn()
The text was updated successfully, but these errors were encountered:
No API options for this (True to sep 22). https://listjs.com/docs/search-sort/
For now you can use plain js. and [data-sort] selector.
[data-sort]
document.querySelectorAll('[data-sort]');
https://bobbyhadz.com/blog/javascript-get-element-by-data-attribute
Step forward - when the sort is active data-order is asc or asc:
asc
document.querySelectorAll('[data-sort="asc"]');
So with this idea use click events and show to the user extra data (Like "the Active sort buttons"). -or- use sortStart/sortComplete events.
sortStart
sortComplete
Hard to answer more because the Q is general.
Sorry, something went wrong.
Have not found a good way. One of the issues we are having is when re-indexing the data, it loses the previous sort and reverts to the default sort.
No branches or pull requests
I have used one coulmn to sort the list,but Is there any way to get the column of sort? like
list.getCurrentSortColumn()
The text was updated successfully, but these errors were encountered: