Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Feature request: no children #40

Open
doughboy opened this Issue · 4 comments

5 participants

@doughboy

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.

@tchapi

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

@andrewkillen

Tested and implemented this solution from @tchapi works just perfect.

@morsaPT

+1
Should be there by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.