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

Not assign st-sort-ascent on click #804

Open
mzakshevskiy opened this issue Nov 16, 2017 · 1 comment
Open

Not assign st-sort-ascent on click #804

mzakshevskiy opened this issue Nov 16, 2017 · 1 comment
Labels

Comments

@mzakshevskiy
Copy link

I have a table with sorting value. But if i i click to different, I need to click more than one times to assign class st-sort-ascent. Have any ideas why?
I use Angular 1.5
And thanks for this plugin :)

@lorenzofox3
Copy link
Owner

by default the sort sequence is ascent -descent - none.
You can modify the sequence by providing the configuration attributes on your html element (or at the global config level):

  • st-descending-first=true => descent - ascent -none
  • if you add the st-skip-natural attribute the "non" state is removed from the sequence.

when you click to another header the sequence of the current one will be reset.

If this is not what you are experiencing, please provide a running example. Thanks

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

2 participants