Raketten1963
Raketten1963

Reputation: 1

Dragula: How to drag a container into a container?

I am using Dragula and I love it. But recently I came upon a problem that I cannot solve, hence I need your kind help.

I have files, folders and a trashcan. I would like to enable that files can be dragged to folders and the trashcan, but at the same time, I would like to enable dragging a folder to the trashcan.

This makes a folder both a container and a dragable element, and this appear not to be possible.

I sincerely hope I am missing something, please tell me what it is...

Thanks in advance.

Upvotes: 0

Views: 178

Answers (1)

Raketten1963
Raketten1963

Reputation: 1

After another day of work I realized, that I can actually just instantiate another dragula, so now I have 2. One is handling drag and drop of files and another is handling dragging of folders. I love this library :-)

Upvotes: 0

Related Questions