Undo / Redo
Track edit history and allow users to undo/redo changes.
How It Works
The editing system tracks pending values. Use commitAllPending() to persist changes and discardAllPending() to revert:
// Make edits
table.setPendingValue('row-1', 'name', 'New Name')
table.setPendingValue('row-1', 'salary', 120000)
// Check for pending changes
table.hasPendingChanges() // true
// Undo all pending (not yet committed)
table.discardAllPending()
// Or commit all at once
table.commitAllPending() // triggers onEditCommit callback
Notes
- Full undo/redo with an action stack is planned for a future release
- Currently, "undo" means discarding uncommitted pending values