Skip to content

Type Editor


Type Editor / @type-editor/tables / commands/delete-column / deleteColumn

Function: deleteColumn()

ts
function deleteColumn(state, dispatch?): boolean;

Defined in: tables/src/commands/delete-column.ts:22

Command that removes the selected columns from a table.

If the selection spans multiple columns, all selected columns will be removed. The command will not execute if it would remove all columns 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