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

Hierarchical data sorting (without @atlaskit/tree) #1438

Open
jnath8 opened this issue Aug 7, 2019 · 2 comments
Open

Hierarchical data sorting (without @atlaskit/tree) #1438

jnath8 opened this issue Aug 7, 2019 · 2 comments

Comments

@jnath8
Copy link

jnath8 commented Aug 7, 2019

I am aware that react-beautiful-dnd doesn't support tree sorting and suggestion is to use @atlaskit/tree package. However it may not be a lot of incremental work to add tree sorting feature in react-beautiful-dnd.

In case it helps, I created an example on codesandbox.io: https://codesandbox.io/s/vertical-list-58g70

The HTML structure is similar to those commonly used in HTML tree generation, for example, jquery sortable: https://johnny.github.io/jquery-sortable/

I have also marked Draggable and Droppable on the same elements as in jquery sortable.

Of course, if this FR is really out of scope then pl go ahead and close.

Thanks

@jnath8
Copy link
Author

jnath8 commented Aug 7, 2019

It already works quite a bit, just some height issues of the draggable when dragging. It even drags sub-trees (unlike @atlaskit/tree)

@zlanich
Copy link

zlanich commented Sep 24, 2020

I too desperately need tree support, and the ability to drag items between different levels. I'm seeing that this is still not supported, and I cannot get it to work either. Any update on this? Thanks!

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

No branches or pull requests

4 participants