MaazAli / ember-cli-sortable

Ember CLI addon for RubaXa's sortable plugin
MIT License
18 stars 24 forks source link

Multiple groups and items #7

Open jpserrett opened 9 years ago

jpserrett commented 9 years ago

First off, thanks for converting this to Ember.

I used this library outside of Ember and it was able to do everything that I needed it to, but I am unable to figure out how to get this addon to work the same way. Here is what I have:

I have several dynamically added groups, each with fields within them. I need to be able to reorder the groups, as well as the fields. I also need to be able to drag the fields from one group to another, dropping them in where I need them.

Is there a way to get this setup using this addon?

Thank you very much!

jpserrett commented 9 years ago

So it would seem that in the 'setup' function that is fired on 'didInsertElement', the group property was missed. I added that in and now I can move my items from one list to the other.

However, I still don't see an easy way to make embedded sortable lists. It would seem the easiest way to do this would be to simply allow a yield in the component, instead of a fixed template.

Any help would be greatly appreciated.