Transactions and history API
Developers can group several programmatic edits into one undo entry with beginTransaction and commitTransaction, roll a transaction back, or mark changes as not undoable. This lets app-level bulk actions feel atomic, just like the built-in range operations.
Planned. This page shows the specification from issue #191. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A price grid with a Discount button and a history panel.
Expected behavior
The discount creates one entry. A simulated failure rolls back with no partial changes. Non-undoable edits do not appear in the history.
Planned API surface
beginTransaction()commitTransaction()rollbackTransaction()applyEdits()history:changegetHistory()Acceptance criteria
- Nested begin calls join the outer transaction (pending)
- A rollback restores the cell values and emits no history entry (pending)
- Committing with no changes creates no history entry (pending)