EditAction
Since v0.1.1
Represents a single edit action that can be undone/redone
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
type | cell-edit | Type of action - currently only ‘cell-edit’ is supported |
rowIndex | number | The display (processed-row) index where the edit occurred, at the time of the edit. Only used to locate the row when rowId is unavailable — it goes stale as soon as a sort, filter, or row insert/removal changes the view. |
rowId? | string | Stable ID of the edited row (from getRowId / row.id), captured when the edit is recorded. Undo/redo resolve the target row by this ID, so they keep hitting the right row after the view is sorted or filtered — including rows currently filtered out of view. undefined when the row has no resolvable ID; the action then falls back to rowIndex. v3.9.2+ |
field | string | The field (column key) that was edited |
oldValue | unknown | The value before the edit |
newValue | unknown | The value after the edit |
timestamp | number | Unix timestamp when the edit occurred |