nestedSortable icon indicating copy to clipboard operation
nestedSortable copied to clipboard

Maintain multiple lists

Open cmbirk opened this issue 12 years ago • 6 comments
trafficstars

A feature idea would be to drag elements between or in/out of lists

cmbirk avatar Jan 10 '13 20:01 cmbirk

I absolutely agree. If anyone else has implemented this, do share!

josephdpurcell avatar Jan 12 '13 13:01 josephdpurcell

What do you mean with it? You can already connect lists with other Sortables, even though not with Draggables...

2013/1/12 Joseph D. Purcell [email protected]

I absolutely agree. If anyone else has implemented this, do share!

— Reply to this email directly or view it on GitHubhttps://github.com/mjsarfatti/nestedSortable/issues/70#issuecomment-12178053.

mjsarfatti avatar Jan 17 '13 21:01 mjsarfatti

Does this work between Sortable and NestedSortable? I can only get it to work between two NestedSortables.

Also, although I can drag from one list to another it doesn't update the tree classes until you sort the tree. Need a way to update the tree structure after receiving an item.

adamgruber avatar Feb 15 '13 19:02 adamgruber

I tried a test to have Sortables handling the root items, while nestedSortables was handling the respective groups of children under each of the root items. I got it mostly working. The root items could be sorted amongst each other, but not involved with the children. Likewise, the children could be passed amongst the various groups under the root items.

The problems I encountered were, when I moved all of the sub-items from a <ol> the tag closed, preventing me from moving any further sub-items to that spot. Maybe this could have been solved with the use of an option, but I wasn't able to figure that issue out.

There was another bug in which sub-items could be moved to above a root item, effectively becoming a root item itself. After that, all of the CSS was stripped from that particular item and it was stuck until a page reload.

Spiderkeg avatar Feb 22 '13 17:02 Spiderkeg

This root items stuff needs some working on I see, but I don't have time at the moment. If anybody wants to give a hand he/she is welcome!

mjsarfatti avatar Mar 04 '13 12:03 mjsarfatti

The protectRoot option is fixed. You can sort root items only between themselves, and children can never become root items (in version 2.0).

I haven't tested dragging between Sortable and nestedSortable yet.

mjsarfatti avatar Apr 02 '13 22:04 mjsarfatti