-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config option to confine list items to stay within their own hierarchy level? #54
Comments
There is no functionality like this, but we are open for PR. |
This can be done with beforeDragStop callback. e.g. |
Can join such a control, control in the same level of mobile is sometimes useful, at present beforeDragStop + .dd-nochildren There is a problem at the root level, can not effectively handle, |
I know this a stale repo but figured I would ask. I have this functionality as suggested by @RomanBurunkov. The issue that remains is that the placeholder doesn't get added. It seems that gets blocked by the callback. There is no user feedback where you are dropping items etc. I am also thinking it's possible to make that placeholder CSS conditional i.e. red for places you can't drop etc. which would be a nice touch. Any suggestions where to start here - been digging through the source code but it's not obvious. |
I had a rouge |
Is there an option to ensure that once you start dragging any list item, nestable does not allow the item to be moved across the hierarchy but only among items on its own level?
The text was updated successfully, but these errors were encountered: