Comments (3)
@jameskerr thanks for the quick reply! That does sound like a doable workaround for the time being!
I'll try and whip up a code sandbox once I've got something working 👍
from react-arborist.
I'm looking for the exact use case. Is this something that's being considered?
from react-arborist.
I haven't actively been thinking about this. Off the top of my head we need to:
- Be able to identify the tree from which the drag started and the tree into which it dropped. We don't support that yet.
Moving the data can be handled in your app code since the component can be fully controlled.
You could totally do it today with a button click though.
If you kept a ref to both trees, you could get the "treeRef.current.selectedNodes" from the first tree in the onClick handler of the button. Then you could update your data in the second tree and remove those nodes from the first tree.
from react-arborist.
Related Issues (20)
- Inifinite Scrolling within Branches? HOT 2
- Item count increases randomly HOT 1
- Property 'select' does not exist on type 'never' HOT 1
- Hidden flag for nodes HOT 1
- Doesn't work on remix HOT 1
- React Aborist ScrollTo bug with deep nested nodes HOT 1
- [HELP] Multiple selection from array of ids
- Render 1 million root elements on different screen sizes
- Deselect not firing event HOT 2
- How to drag a node INTO a leaf node
- Better scrolling while user is dragging
- [Question] How to build a tree with some folders open and some closed? HOT 1
- There is a bug in using the tree.update method to set height.
- Duplicate HTML5 backend error HOT 5
- Deletion behavior can be unintuitive HOT 4
- Lack of control over delete leads to some weird scenarios HOT 2
- Should we be able to focus the entire tree? HOT 2
- Using react-arborist in an app seems to break file & folder drop on <input type="file" multiple /> elements HOT 2
- How rename `name` to `node_name` and create node with name
- Drag and Drop should be handled within the level hierarchy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-arborist.