Smart-Table
Smart-Table copied to clipboard
Not assign `st-sort-ascent` on click
trafficstars
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 :)
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