Closed kojaktaha closed 5 years ago
Hello @kojaktaha, there is an event called dropEl
which you can track where element was dropped.
jkanban = new jKanban({
element: '#your_element',
dropEl: function(el, target, source, sibling) {
console.log(target);
}
}
Hello @kojaktaha, there is an event called
dropEl
which you can track where element was dropped.jkanban = new jKanban({ element: '#your_element', dropEl: function(el, target, source, sibling) { console.log(target); } }
Thanks
I have this question too. The "target" shows me all the elements on the board I dropped on, but how do I get the ID of the board I dropped on?
I want these IDs:
use : target.parentNode.dataset.id
Or if you're using jQuery: $(target.parentElement).data("id")
Thanks very much both of you.
How can I Know which board was the element dropped to?