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}.
PRO
The functionality is available in PRO Edition only
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')" />
Related articles
- 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.