How do I reset the table to it's initial state?

Tags: #<Tag:0x00007efc6a328710> #<Tag:0x00007efc6a3285d0>

Hi,

I want to be able to reset the table to it’s initial state at the click of the button.

For example, in the following table if I change the contents of cell A1 to ‘apples’, when I click the reset button I want it to change back to ‘A1’. Is there a way to do this without having to define the state again with loadData or setDataAtCell?

https://jsfiddle.net/86kmtrnb/

Thanks

Hi @adam2

If you want to completely reset the table, and then have the initial data again our API can help you do this with the hooks you mentioned - loadData or setDataAtCell. That’s the recommended way of doing this.