Undo/redo history
Record cell edits, row additions and deletions as reversible commands. Undo and redo are available via keyboard and API. Undo restores values, the validation state and focus position.
Planned. This page shows the specification from issue #195. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Editable grid with Undo/Redo toolbar buttons and a history list.
Expected behavior
Ctrl/Cmd+Z undoes the last edit and Ctrl+Y or Shift+Cmd+Z redoes it. A new edit after an undo clears the redo stack. Validation errors are re-evaluated after undo.
Planned API surface
undoRedo.enabledundo()redo()canUndocanRedohistoryChangeAcceptance criteria
- Every reversible operation round-trips exactly. (pending)
- The buttons are disabled when the respective stack is empty. (pending)
- Undo inside an active editor first undoes the editor's text, not grid history. (pending)
- historyChange reports the stack sizes. (pending)