angular-sortable-view icon indicating copy to clipboard operation
angular-sortable-view copied to clipboard

nested sorting

Open yjmoroz opened this issue 12 years ago • 11 comments

thank you very much for plugin and what about nested sorting?

yjmoroz avatar Sep 15 '14 16:09 yjmoroz

That isn't supported by angular-sortable-view yet, but it is by my other module: ng-nestable

kamilkp avatar Sep 16 '14 05:09 kamilkp

I am looking for this functionality too.

jeffreysfridge avatar Feb 12 '15 19:02 jeffreysfridge

Have you tried ng-nestable ?

kamilkp avatar Feb 12 '15 19:02 kamilkp

I haven't yet. I need parents to be sortable and children to be sortable in the parents, but parents should stay as parents and not be able to be children. Is this possible with ng-nestable?

jeffreysfridge avatar Feb 12 '15 22:02 jeffreysfridge

I tried to set up parents and children being both independently sortable with angular-sortable-view, but only the parent can be dragged. I tried to limit the click and drag area of the parent using 'sv-handle' but that didn't do anything.

jeffreysfridge avatar Feb 12 '15 22:02 jeffreysfridge

well, angular-sortable-view should be able to handle that scenario. i'll try to use it like that myself, and see if i run into similar problems

kamilkp avatar Feb 13 '15 18:02 kamilkp

Using 'sv-handles' does the trick. but you're most likely experiencing the #18. See this jsbin to see it working. I will be pushing a new version in a few moments that will have this fixed

kamilkp avatar Feb 13 '15 21:02 kamilkp

Works in v0.0.13

kamilkp avatar Feb 13 '15 21:02 kamilkp

Wow, thank you so much for getting this work! I've got my project now working too. It'd be great if I could drag children to other parents too, but I'm happy with this for now!

jeffreysfridge avatar Feb 13 '15 23:02 jeffreysfridge

If you want to be able to move children between parents just set a common value of the inner elements' sv-root attribute. That will group them together.

kamilkp avatar Feb 13 '15 23:02 kamilkp

Thanks! It's totally working now.

jeffreysfridge avatar Feb 17 '15 19:02 jeffreysfridge