Skip to content

Type Editor


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

ParameterTypeDescription
transactionPmTransactionThe transaction to apply changes to
tableRectTableRectThe table rectangle containing map, table, and tableStart
rownumberThe row index to remove

Returns

void