Closed ahmedcastres closed 3 years ago
Example if your dragula bag name is "first-bag":
$scope.$on('first-bag.drop', function (e, el) { console.log("DROP EVENT !"); });
if you use drag event
across all dragging time your function will be called.so if you need to call your function once ( eg. when item dropped to target) you must use drop event.
drake.on('drop',function(el,target,source,sibling){
//call your function here
})
Hi, I'm trying to catch the event when an object is already dragged in another container. So, when I drag an objet, the function is called hundreds of times. But how can I catch this event once the object is dragged successfully ? Thank you :)