bevacqua / dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/dragula/
MIT License
21.89k stars 1.97k forks source link

Copy depending on target #562

Closed ghost closed 3 years ago

ghost commented 6 years ago

Hi, first of all thank you for the amazing library.

I was wondering if there's a way to allow copy between different containers but enabling/disabling it depending on target. By reading the documentation I saw that right now you can toggle the copy option by using a function that must return a boolean, I was expecting the target container being part of those parameters.

How can I achieve what I need with the current library methods? Thank you.