Skip to content

@serenity-is/sleekgrid / EditCommand

Interface: EditCommand

Defined in: src/core/editing.ts:115

Command produced by an editor commit; supports undo/redo when the grid's editCommandHandler queues it.

Properties

cell

cell: number

Defined in: src/core/editing.ts:119

Cell/column index that was edited.


editor

editor: Editor

Defined in: src/core/editing.ts:121

Editor instance that produced the change.


execute()

execute: () => void

Defined in: src/core/editing.ts:127

Applies the edit.

Returns

void


prevSerializedValue

prevSerializedValue: any

Defined in: src/core/editing.ts:125

Previous serialized value before the edit.


row

row: number

Defined in: src/core/editing.ts:117

Row index that was edited.


serializedValue

serializedValue: any

Defined in: src/core/editing.ts:123

New serialized value from the editor.


undo()

undo: () => void

Defined in: src/core/editing.ts:129

Reverts the edit.

Returns

void