Open morganpizzini opened 6 years ago
Hi,
It looks like you have used some solution from original nestable.
In nestable 2 you can just use 'beforeDragStop'. It is described in the ReadMe.
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. 😄
@morganpizzini Can you make pull request with this changes?
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 issub-item now can be dropped only when list have data-list-no="2"