The defaults of UndoOptionsIf (undo and redo, TableOptionsIf.undo).

Example

const options = UndoOptions.create({ maxSteps: 20 });
options?.onConflict; // "skip"

Since

1.1.99

Hierarchy

  • UndoOptions

Implements

Constructors

Properties

maxCells: number = 1_000_000

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 = 100

Steps kept; the oldest is dropped. Default 100.

onConflict: "skip" | "overwrite" = "skip"

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 = false

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

Methods