-
Notifications
You must be signed in to change notification settings - Fork 438
Multiple sortable #167
Comments
Please elaborate on the desired behavior (about multiple sorting). |
I would like to have possibility to select more than one item, and move it. Something like jquery ui sortable with connected lists. |
I'm not aware of such a feature in the vanilla jquery ui sortable (when it was released?). Did you gave it a try without any results? Because, as README states:
Can you provide an example/demo or reference? |
Hey, sorry for late response. It allows multi-selecting (try to hold CTRL and select cities). http://jsfiddle.net/ndamnjanovic/swt48/ Not sure if I can fork your directive and tweak it somehow, to support this behaviour. |
Take a look at line 158. This was needed for proper handling of incomplete sortings. Since such a feature is not part of angular-ui-sortable, I think that it shouldn't be merged into master. Like cloning, the user if free to implement it or follow the suggested solution found in README (see #139 for details). On the other hand, it would be nice if we could create a code example, a branch or even a seperate directive that would work on top of ui-sortable to provide an elegant solution for this use case. |
Ideally we could create a seperate directive Finally the implementation should look like this: <ul ui-sortable="opts" ui-multi-select model="list">
<li ng-repeat="item in list">{{ list.text }}</li>
</ul> PS: I think something like this, should be merged in update: maybe the selection directive should be placed to the |
Thanks for prompt response. I see what you mean. I'm currently in a bus, so I'm reading this on my phone. I'll take a closer look this evening, once I get home. |
Any progress over there? I`m might have solved the problem... The html should look like <div ui-sortable="sortableOptions" ng-model="list" class="list">
<div ui-sortable-selectable ng-repeat="item in list" class="item">
{{item.text}}
</div>
</div> |
I just created ui-sortable-multiselection repo to host a directive that provides a possible solution to the problem. It's early days, I never tried using it with connected lists, but it's a proof of concept. |
Hey sorry for delay again, I'm currently on some IT conference, I'll take a look at guides you gave me, and this repo. I switched on another project this week with tons of new stuff, so I didn't have time to check it closer, although I need to. Thanks for help! |
Hi there,
Is there a plan to extend this directive to support multiple sorting?
The text was updated successfully, but these errors were encountered: