Protected Root (Feature Request) #58

trsteel88 opened this Issue Apr 1, 2013 · 2 comments


None yet

2 participants


Not sure if this is possible in the current version, but I was wondering if there is a way to protect the root (like protectRoot option). I do not want the root to be able to be moved from its root level. However, I do want root elements to be able to be sorted.


I think it would be great if we had the option to add 'data-max-level="1"' to the

  • element.

    This way we could specify exact how far an item could be indented in the list.

  • @nback5
    nback5 commented May 2, 2013

    I agree

    I would be nice to have the following:

    1. Mark a node as not draggable

    as trsteel mentions:
    2. add 'data-max-level="xxx"' to an element, to limit drops to an element (or even prevent drops)
    3. protect root feature

    this will allow me to implement comprehensive business logic

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment