Type Editor / @type-editor/tables / commands/remove-row / removeRow
Function: removeRow()
ts
function removeRow(transaction, tableRect, row): void;Defined in: tables/src/commands/remove-row.ts:21
Removes a row at the specified position from a table.
This function handles:
- Reducing rowspan for cells that span across the removed row
- Deleting cells that only occupy the removed row
- Moving cells that start in the removed row but continue below
- Properly updating position mappings during the operation
Parameters
| Parameter | Type | Description |
|---|---|---|
transaction | PmTransaction | The transaction to apply changes to |
tableRect | TableRect | The table rectangle containing map, table, and tableStart |
row | number | The row index to remove |
Returns
void