Removing coppied item without using removeOnSpill
ibrahimunal opened this issue · 0 comments
Change each [ ]
to [x]
when you have done it.
- My issue title starts with
[usage question]
- I have read the README, especially the 'classic blunders' section
- I have looked at the demos to see if my use case has obvious examples.
- I have searched the
ng2-dragula
issues, including closed issues. - I have browsed the issues labeled "future reference" for problems that have been solved before.
Removing copied item without using removeOnSpill
I have two horizontal div which bottom one represents a set of images and I copy them to the upper container with dragula's copy attribute. As I hover the mouse on the images on the upper body I want to remove the dragged item with the delete button.
removeOnSpill work fine in my project however I need to create a system that removes the dropped( or copied ) item with a button click.
I tried to destroy the group but it does not remove the dropped item but only disallows to drag option.
Since I have an issue with deleting I also have with adding. In my system as I click the images on the bottom, I get its image id and add it on the upper div. However, if I first drag and drop image with dragula it adds the image then if I click the image it adds again which creates two images. Any suggestion on how to handle these issues, what would be the best approach?
I only created this simple example in order to explain what I meant