Protected Root (Feature Request) #58

Open
trsteel88 opened this Issue Apr 1, 2013 · 2 comments

Projects

None yet

2 participants

@trsteel88

Not sure if this is possible in the current version, but I was wondering if there is a way to protect the root (like https://github.com/mjsarfatti/nestedSortable 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.

@trsteel88

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 https://github.com/mjsarfatti/nestedSortable

    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