Type Editor / @type-editor/tables / commands/delete-row / deleteRow
Function: deleteRow()
ts
function deleteRow(state, dispatch?): boolean;Defined in: tables/src/commands/delete-row.ts:22
Command that removes the selected rows from a table.
If the selection spans multiple rows, all selected rows will be removed. The command will not execute if it would remove all rows in the table.
Parameters
| Parameter | Type | Description |
|---|---|---|
state | PmEditorState | The current editor state |
dispatch? | DispatchFunction | Optional dispatch function to execute the command |
Returns
boolean
True if the command is applicable, false otherwise