kamilkp / angular-sortable-view

Fully declarative (multi)sortable for AngularJS
http://kamilkp.github.io/angular-sortable-view
MIT License
423 stars 143 forks source link

Event after action #1

Closed jmgirao closed 10 years ago

jmgirao commented 10 years ago

hi, Can i fire event after ordering?

kamilkp commented 10 years ago

There is no way to do it right now, but I have the code implemented for that. I'm going to push it to master tomorrow.

kamilkp commented 10 years ago

Download version 0.0.6. An sv-on-sort attribute can be now placed on an element with sv-root. The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. So you can write something like:

sv-on-sort="elementsResorted()"
gushonorato commented 10 years ago

@kamilkp Is it possible to know which element was sorted?

jmgirao commented 10 years ago

I subscribe!

kamilkp commented 10 years ago

Download version 0.0.7.

You can now use these optional attributes on the element with sv-root: