I would like to create a backbone based page where there are undefined amount of columns and rows in a table-like layout. The 'table' structure and cell data should be saved to the backend.
The simplified models are:
row:
- id
- label
column:
- id
- label
cell:
- rowID
- columnId
- value
in this situation a cell belongs to one row and one column.
If I add rows and columns dynamically how will the cells know what their rowID and columnId is especially in case of a newly added row+column which is not saved yet?
An other question is how I can connect a row of cells to a row object and at the same time a column of cells to a column object?
Thank you in advance, please let me know if you need more details.