These are chat archives for angular-ui/ui-sortable

19th
Jul 2015
Alan Brian Dardic
@alandardic
Jul 19 2015 14:29
Hi there
Im using your ui-surtable-multiselect directive
and I'm having trouble to get to the selected items model..
I get only the first item model when looking at ui.item.sortable.model
Can you please help me by directing me where can I find the other selected items model?
THANKS A LOT!!!
Thodoris Greasidis
@thgreasi
Jul 19 2015 14:34
The solution for more should be to find the selection indexes (maybe by class) and retrieve their models
For now*
Alan Brian Dardic
@alandardic
Jul 19 2015 14:46
Cool - thanks!!! it works :)
Thodoris Greasidis
@thgreasi
Jul 19 2015 16:21
Hohooo!!!
Just found some exposed properties!
ui.item.sortableMultiSelect.indexes
ui.item.sortableMultiSelect.moved
ui.item.sortableMultiSelect.sourceElement
Alan Brian Dardic
@alandardic
Jul 19 2015 16:21
Yes.
I'm now using ui.item.sortableMultiSelect.indexes
and find the others using ui.item.sortable.sourceModel[in indexes place]
Thodoris Greasidis
@thgreasi
Jul 19 2015 16:33
+1
Thodoris Greasidis
@thgreasi
Jul 19 2015 17:38
I think that ui.item.sortableMultiSelect.indexes are only the indexes of the simblings
Thodoris Greasidis
@thgreasi
Jul 19 2015 18:13
@alandardic Just released v0.3.0 with proper properties
Also released as an npm package