Skip to content
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

Change tree only on changing parent of dragging node #33

Open
brusherru opened this issue Aug 4, 2016 · 0 comments
Open

Change tree only on changing parent of dragging node #33

brusherru opened this issue Aug 4, 2016 · 0 comments

Comments

@brusherru
Copy link

I need to use drag-n-drop feature only to change parents of nodes, not sorting (because all nodes will be sorted in alphabetic or another order that can be defined by user). And I think it's a common case of the use of tree view. So it would be great if there will be an option, that will:

  • onDragEnd revert tree state into old state if dragging node didn't change his parent (so node will be placed to its place) and call onChange
  • (optional) make draggable placeholder appears only inside other folders (nodes that can be parents)

Maybe someone already solved this issue and can share the solution?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant