I found that you can use the dd-persistent functionality to disable dragging of some items. But I also want to make sure those items (or certain items cannot have children).
Maybe adding in a dd-no-children class and before allowing the draggable to be dropped as a child of that item it has to make sure it is allowed?
I know there is the maxDepth, but I am saying that I want to allow a maxDepth of 5 items, but certain ones have no children within that same list.
I've added this functionnality from @craigsansam in my own branch of Nestable, that includes a different way of doing the callback as well, you might want to have a look :
Related commit : tchapi@8175efc
Tested and implemented this solution from @tchapi works just perfect.
Should be there by default.