Hello,
I'd like to implement my own logic for saving the Spreadsheet document. I don't want to use `saveUrl`, but provide my own logic for saving, using React Spreadsheet component.
In order to do that, I provide a callback for `beforeSave` function:
which is implemented in the following way:
I need to get the current JSON data for the whole Spreadsheet there (see my comment in the code above). There's an API method
saveAsJson(), but it triggers the save and beforeSave again recursively... I don't get why it would go to the API, by the way.
There are other functions there like `getData()`, but it requires providing some address. I want the whole JSONData.
I didn't find any other properties/functions on the spreadsheet editor ref instance. I assume the current JSON must be there on the client-side, because when using `saveUrl`, it's present in the controller:
Can you help me here, please?