What do you recommend for drag and drop capabilities?
I am creating an app using tauri and solid for my frontend. And am wanting to have the ability to drag and drop between windows. Currently my best option is to use the HTML Drag and Drop API to transfer data across different pages (each window is a different site). The api is good for transfering data, but it doesn't look that good compared to what you get from DND libraries. The downside to those libraries is that you can't transfer data between sites (could be wrong).
4 Replies
This is very new, but seems to support your case regarding dnd between windows:
https://atlassian.design/components/pragmatic-drag-and-drop/about
The documentation is quite confusing. Have seen it before. It is basically the HTML drag and drop api.
Yeah its native api minus bugs. There is also sortablejs that i can recommend to you, but it also has its tradeoffs 😅
Thanks. Seems like I will always get some form of tradeoff no matter where I go. I might try to see if I could use the Solid DND library. And then when I put parameters on the element. I can hope that then I can switch to using the HTML drag and drop api when the mouse leaves the viewport. Bit hacky but might work.