Skip to content

Type Editor


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

ParameterTypeDescription
statePmEditorStateThe current editor state
dispatch?DispatchFunctionOptional dispatch function to execute the command

Returns

boolean

True if the command is applicable, false otherwise