thgreasi / ui-sortable-multiselection

Provide multiple element sorting in UI-Sortable
MIT License
30 stars 12 forks source link

Event that fires when an item is selected #23

Closed pedro-mass closed 8 years ago

pedro-mass commented 8 years ago

Is there a way to know which items are selected without a drag?

thgreasi commented 8 years ago

We trigger ui-sortable-selectionschanged on the ui-sortable element. I hope that it's exaclty what you are looking for. Feel free to re-open in any case.

pedro-mass commented 8 years ago

Yeah but how do we use it?

I checked the docs for ui-sortable, and didn't see any even matching that name.

thgreasi commented 8 years ago

Changed the simple example found in README to demonstrate how the event can be used. Hope it helps.

pedro-mass commented 8 years ago

Thank you! I didn't realize you could listen to events on the element like that :)