Interface UndoOptionsIf

Undo and redo (TableOptionsIf.undo). undo: true uses the defaults of UndoOptions; an object overrides single values.

Example

const tableOptions: TableOptionsIf = {
...new TableOptions(),
editing: true,
undo: { maxSteps: 50, onConflict: "overwrite" },
};

Since

1.1.99

Hierarchy

  • UndoOptionsIf

Implemented by

Properties

maxCells: number

Cells kept over all steps (the oldest steps are dropped). A single change with more cells empties the history and is announced – it cannot be undone. Default 1_000_000.

maxSteps: number

Steps kept; the oldest is dropped. Default 100.

onConflict: "skip" | "overwrite"

A cell changed by something else since the step (live data, updateCells): "skip" leaves it and announces it (default, safe), "overwrite" writes anyway.

recordApiChanges: boolean

Record api.applyCellChanges(…) with source "api" too. Default false (per call: { undoable: true }).