moveable
moveable copied to clipboard
Load and save data from database?
Thank you for this amazing library. Currently I'm exploring this library. I've one question, I didn't find any example which involved saving and lading data from database
In React, I accomplish this by using a state that is applied to the element, setting the style state on drag, etc. and run and update to the DB on onDragEnd. Without knowing what you're using for lib, db, etc., it might be hard to give an example.
@jessejamesrich
Hi, it would be great if you can share the code of how you did this. I am trying to do the same kinda thing, I just wanna know what exactly you are setting and updating. Thanks!
Sure. Lemme see if I can help at all. What exactly are you looking for? I've only got one project and it feels rather complex, so I can pull from it exactly what you'd like to see.
I am also curious how you would save a state! Not to familiar with react but this looks like it could be the perfect tool for an art program I want to build.