Closed jmgirao closed 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.
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()"
@kamilkp Is it possible to know which element was sorted?
I subscribe!
Download version 0.0.7.
You can now use these optional attributes on the element with sv-root
:
sv-on-sort
- The expression passed as a value of that attribute will be evaluated when elements order has changed after sorting. Several parameters can be injected there like: sv-on-sort="foo($item, $partFrom, $partTo, $indexFrom, $indexTo)"
where:
</li>
sv-on-start
- The expression passed as a value of that attribute will be evaluated when a user starts moving an element. Several parameters can be injected there like: sv-on-start="bar($item, $part, $index, $helper)"
where:
</li>
hi, Can i fire event after ordering?