ember-cli-sortable icon indicating copy to clipboard operation
ember-cli-sortable copied to clipboard

Multiple groups and items

Open jpserrett opened this issue 10 years ago • 1 comments

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 avatar Jul 27 '15 18:07 jpserrett

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.

jpserrett avatar Jul 27 '15 19:07 jpserrett