Handsontable instance without window

Tags: #<Tag:0x00007f343789e3e8>

Hi,
I am writing this post to ask if there currently is a way to create and Handsontable instance and stopping it from rendering.

I am trying to validate some data in the backend by creating an Handsontable instance and calling the validateAll() method.

I am doing this because it allows me to have one single data structure between the frontend and backend.

With NextJs though, I run into the window is not defined error since the new table instance seems to be trying to access the window property that is not present in the backend.

Is there any way to circumvent this? Is writing my own validation the only solution?

Thank you in advance,
M.

Hi @Massimo

maybe you could initialize the empty object instance and attach the settings afterward? I’m not sure if that meets your requirement. This is how it would look https://jsfiddle.net/handsoncode/69x8b4nq/

I’m closing this issue as there is no feedback for nearly a month.
If you still need any guidance, please create a new ticket or message me at support@handsontable.com