isaacHagoel / svelte-dnd-action

An action based drag and drop container for Svelte
MIT License
1.82k stars 104 forks source link

Nested draggable accordions #276

Open multipliedtwice opened 3 years ago

multipliedtwice commented 3 years ago

I try to make something like this: https://youtu.be/Ra7uu72E4l0

Is it possible to make a similar sidebar? Perfectly - VS Code File Explorer kind of drag-n-drop would be amazing to implement.

I tried for a few days, but still can't make the parent level accept a drop from children. Please help.

multipliedtwice commented 3 years ago

Another example would be: https://github.com/frontend-collective/react-sortable-tree

isaacHagoel commented 3 years ago

hi, I've seen this and the other issue you've raised. will look into it in the coming days. thx, Isaac

On Mon, Apr 12, 2021 at 12:17 PM Danil @.***> wrote:

Another example would be: https://github.com/frontend-collective/react-sortable-tree

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/isaacHagoel/svelte-dnd-action/issues/276#issuecomment-817433542, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE4OZCZBALVFPQTYSZ5MKITTIJJ5NANCNFSM42XNRKDA .

multipliedtwice commented 3 years ago

@isaacHagoel thank you, Isaac

isaacHagoel commented 3 years ago

We have been experimenting with similar things: https://svelte.dev/repl/c707c0619f6c4fe1b3210a559cb038ef?version=3.37.0

and https://svelte.dev/repl/f42115f009c44d4cadc326447cbcfeac?version=3.37.0

There is also PR #232 which is supposed to cater to use cases like this. It is still not merged because I am still not sure it is a legit usecase for the library (and it adds a bit of complexity to the drop logic).

multipliedtwice commented 3 years ago

@isaacHagoel lovely, thank you