react-treelist icon indicating copy to clipboard operation
react-treelist copied to clipboard

How difficult would it be to allow drag and drop to and from the tree list?

Open jktravis opened this issue 8 years ago • 1 comments

I'm curious as to your perspective regarding dragging whole rows out of and into the tree list would be an incredibly difficult thing to do?

I'm thinking that the <Row/> component could be wrapped with a react-dnd DragSource that could have the respective arguments exposed as props, but bringing something in and having it properly nest might prove to be more difficult. I'm unsure if the <Body/> would be the DropTarget for this?

Thoughts?

jktravis avatar Oct 17 '16 14:10 jktravis

That is an interesting idea. You are right - <Row/> could be a drag source and <Body/> could be a target. Nesting can use something like this. I don't think I will be able to work on this any time soon, but feel free to have a go at it.

maheshsenni avatar Oct 18 '16 02:10 maheshsenni