Hi,
I have a case where users paste data into Handsontable.
But the pasted data has to be “processed” using an async function. How can I do that?
My problems:
-
I used async function in beforePaste - no success as the other hooks (beforeChange, …, afterChange) are triggered before the async function returns the result
- I also tried to call async function in beforeChange - same result.
-
I can use afterChange or afterPaste hook to “process” the data, but that means I’m actually setting cell value twice
- first time - when user pasted data
- second time - when async function returns the result (processed data)
- That also means that the UndoRedo stack is not correct (as there are two changes there instead of only one)
So, is there any chance to “process” pasted data using async function in any “before***” hook?
Thanks,
Andraz