RamonSmit/Nestable2

Get parent of element

osmanraifgunes opened this issue · 1 comments

I am trying to get parent element of dragged item inside onDragStart and callback events. Is it possible?

You have access to the current element, so just traverse up...

onDragStart: function (l, e) {
    var parentList = e.parents('li');
}