Skip to main content

undo

Restores the stored event snapshot taken before the most recent tracked local mutation (add-event, update-event, move-event, or delete-event), clears editorData, and updates the reactive history counts. Pro-only; requires history={true}.

The functionality is available in PRO Edition only

PRO

Usage

type UndoPayload = {};

The payload is an empty object.

Trigger

api.exec("undo", {});

Observe

api.on("undo", () => console.log("undone"));

Intercept

api.intercept("undo", () => canUndo());

Component handler

<Calendar onUndo={() => console.log("undone")} />
  • Undo and redo — how history tracking works and what it covers.
  • redo — restore the snapshot displaced by undo.
  • history — enable the undo/redo stacks.
  • exec — dispatch from a custom button.