You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var itemMoveIn = this.dragEl.find(opt.itemNodeName).data('moveIn');
var listNo = this.pointEl.closest('.dd-list').data('listNo');
if (itemMoveIn !== listNo) {
return;
}
and use data-list-no and data-move-in for define the "range of motion".
now my template is
Understood, but i use the same model in various pages, and in all of them i have to rewrite 'beforeDragStop' callback, now why 3 rows in plug-in code I can handle it without care about it anymore.
mine was just a hint since it was very useful and I can handle the page behavior by html without worrying about the javascript. 😄
Expected behavior
In the following template i want to move nested items by keeping depth level.
Actual behavior
when i start dragging sub-item i can drop at item level.
How i Solved
as this link says
I added the part
and use
data-list-no
anddata-move-in
for define the "range of motion".now my template is
sub-item now can be dropped only when list have data-list-no="2"
The text was updated successfully, but these errors were encountered: