Save react-grid-layout in database and restore it

1.7k views Asked by At

I'm using react-grid-layout to create scheduller :

enter link description here

enter image description here

I would like to know if this is possible to save the layout into a mysql database and restore it ?

My idea is to store the information in local storage and to transfer the local storage content to MySQL...

https://strml.github.io/react-grid-layout/examples/7-localstorage.html

I hope that's possible, because we spend a lot of time to get this result.

1

There are 1 answers

1
Eric On

Get the current layout using the onLayoutChange event and save its output into a database as a VARCHAR.

Yes, it is possible.

Source