Module table_model
Expand description
Enums§
- Table
Edit - A change the user made to a table, in display coordinates, for its owner to submit as an action.
Functions§
- apply
- Apply
editto the table att: what an owner’s action does with aTableEditthe widget handed it. - cell_
obj - Resolve the
Textobject backing cell(r, c)in display coordinates. - cell_
text - Current text of cell
(r, c); empty string when the cell has no content. - col_ids
- Column ids in display order.
- dims
(rows, cols)dimensions.- ensure
- Create the
rows/cols/cells/widthscontainers if the table has never been initialised. Idempotent — safe to call everysync. - header
- Whether the first row renders as a header band.
- insert_
column - Insert a fresh empty column at display index
at(clamped to0..=cols). - insert_
row - Insert a fresh empty row at display index
at(clamped to0..=rows). Every current column gets an empty backing cell. - remove_
column - Remove the column at display index
at, deleting its cells + width. - remove_
row - Remove the row at display index
at, deleting its cells. - row_ids
- Row ids in display order.
- set_
cell_ text - Replace the whole content of cell
(row, col). Creates the backingTextif it does not exist yet. - set_
header