Hi, it is just a question. How to detect that anything in the sheet has actually been modified? I need it for enabling the "Save" button in my app.
Hi, it is just a question. How to detect that anything in the sheet has actually been modified? I need it for enabling the "Save" button in my app.
4条答案
按热度按时间eit6fx6z1#
I've also been trying to detect cell updates. It'd be great to integrate Luchysheet into a webapp with state management. Did you find a way to do it @d01010101?
ut6juiuv2#
Only this, somewhat crude: after a mouse/keyboard interaction with the sheet, test if getJson() changed.
vohkndzv3#
I found an easier way to detect cell updates: using the hooks implemented in luckysheets. You can pass your code to be run in every cell update to the configuration object:
u2nhd7ah4#
The new version https://github.com/ruilisi/fortune-sheet seems to have callbacks.