Smart-Table icon indicating copy to clipboard operation
Smart-Table copied to clipboard

Not assign `st-sort-ascent` on click

Open mzakshevskiy opened this issue 8 years ago • 1 comments
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 :)

mzakshevskiy avatar Nov 16 '17 17:11 mzakshevskiy

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

lorenzofox3 avatar Nov 23 '17 17:11 lorenzofox3