# EditAction

> _Since v0.1.1_

Represents a single edit action that can be undone/redone

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| <span id="type"></span>`type` | <code>cell-edit</code> | Type of action - currently only 'cell-edit' is supported |
| <span id="rowindex"></span>`rowIndex` | <code>number</code> | 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. |
| <span id="rowid"></span>`rowId?` | <code>string</code> | 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`. <span class="since-badge" title="Introduced in v3.9.2">v3.9.2+</span> |
| <span id="field"></span>`field` | <code>string</code> | The field (column key) that was edited |
| <span id="oldvalue"></span>`oldValue` | <code>unknown</code> | The value before the edit |
| <span id="newvalue"></span>`newValue` | <code>unknown</code> | The value after the edit |
| <span id="timestamp"></span>`timestamp` | <code>number</code> | Unix timestamp when the edit occurred |
