Skip to content
New issue

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

Sort method doesn't apply corresponding classes #316

Open
bjmiller121 opened this issue Mar 19, 2015 · 1 comment
Open

Sort method doesn't apply corresponding classes #316

bjmiller121 opened this issue Mar 19, 2015 · 1 comment
Labels

Comments

@bjmiller121
Copy link

When calling the sort method to sort a list, the corresponding 'asc' or 'desc' class isn't added to the sort button on the page.

It also appears that adding an 'asc' or 'desc' class directly in the markup will actually get stripped out by the script so there's no way to sort something by default AND have the class in order to help style the sort button differently.

Related feature request:
It would be awesome if adding the class or a data-sort-order="asc" attribute or something similar to the sort button would actually apply the specified sort as a default sorting for the list and make sure to maintain the 'asc' or 'desc' class.

Edit: See #301 which implements a default sort attribute.

@ssitdikov
Copy link

data-order="desc" ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants