Fórum Fórum

Vissza

RE: Saving the current state of drag & drop interactions

Váltás
By default a drag and drop interaction resets its state once you leave the page. Is there a way to retrieve the last status once a user comes back to the page?

Ideas are welcome! Thanks, Peter
0 (0 Szavazatok)

RE: Saving the current state of drag & drop interactions
Válasz
2021.05.03. 19:02 válaszként erre: Peter Huppertz.
Hi Peter,
Yes, you can store and restore DnDs. We were initially thinking Maps might help, but decided to go with Lists instead. Here's a video and a sample lesson. You can jump to about the 3:45 mark to bypass the stuff on Maps, and just get to the solution.
https://share.smartbuilder.com/public/support/dnd-store-restore-state.mp4
https://share.smartbuilder.com/public/support/dnd-store-restore-state.sb4

Let us know how it goes!

- Nav
0 (0 Szavazatok)