setState
restores the specified state
function setState( // the state object state: object): void
Example
Section titled “Example”localStorage.setItem("state", JSON.stringify(grid.getState()));//...const state = localStorage.getItem("state");if (state) { grid.setState(JSON.parse(state));}