3

I want to create nested sortable lists using AngularJS. I'm not sure that there is existing solution out there. I tried using https://github.com/mostr/angular-ui-multi-sortable, and it works fine, but unfortunately, seems like it doesn't accept nested lists.

What I actually need is to have like multiple baskets, where I can reorder these baskets, and also drag/drop products from baskets (from one basket to another).

Does anyone have idea/solution how to work with this?

Thanks!

6
  • plz provide a jsfiddle or plunker, it would help us a lot in helping you :) Commented Aug 16, 2013 at 9:02
  • ok, I managed to do this, I used two different directives, one for sorting baskets, and the other one for drag&drop items between baskets. I used ui-sortable, and multi-sortable, in case someone needed. Commented Aug 16, 2013 at 13:05
  • 8
    Post your solution and accept if you found a solution. That way people like me who search for unanswered angular questions to answer won't come by here anymore :) Commented Sep 2, 2013 at 1:47
  • Please post your solution! xkcd.com/979 Commented Oct 4, 2013 at 16:48
  • Please post the answer!! I need that too! Commented Oct 25, 2013 at 15:52

1 Answer 1

10

I've just written an angularjs ui component for this.

Try this one: https://github.com/JimLiu/Angular-NestedSortable

Sign up to request clarification or add additional context in comments.

2 Comments

Hey, Jim, this looks pretty good! Finally we went with another approach and we didn't need nested component, but in case someone else needs it, I hope yours will help. Regarding ours directive, it will be on github in next few days, and I'll publish it here (however, it's not nested).
Any chance this could be made to allow for selecting multiple elements (at once) to drag and drop?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.