Posted 2 March 2026, 2:59 am EST
Hello,
I am developing an application that edits hierarchical data (a collection of row data that contains a Level field) using a SpreadJS TableSheet.
The data source for the hierarchical data is an in‑memory array of JSON objects. I want changes made by editing cells in the TableSheet to be automatically reflected in the in‑memory data source immediately after the edit.
- When using the DataManager’s addTable() method, which of the following is the correct way to bind the in‑memory JSON object array as the data source for the table?
- I want edits made in the TableSheet to be automatically reflected in the in‑memory data source right after a cell is edited. Is it correct to register a cell‑editing event handler using Workbook.bind(), and have that handler call saveRow()? Is there any other recommended approach?
- When rows are added, deleted, or updated, how can the Table object or the data source detect these changes? Is it possible to know exactly which rows were added, deleted, or updated?
I would greatly appreciate any advice you could provide.
