moveable icon indicating copy to clipboard operation
moveable copied to clipboard

Load and save data from database?

Open saileshkush95 opened this issue 3 years ago • 4 comments

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

saileshkush95 avatar Jun 30 '21 13:06 saileshkush95

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 avatar Jul 03 '21 14:07 jessejamesrich

@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!

aayush801 avatar Nov 17 '21 18:11 aayush801

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.

jessejamesrich avatar Nov 18 '21 19:11 jessejamesrich

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.

zumdar avatar Aug 21 '22 02:08 zumdar