API reference: @salmonui/data-grid/engine
EditSnapshotinterface
import type { EditSnapshot } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/edit.
interface EditSnapshot {
readonly activeRowId: RowId | null;
readonly activeCell: CellRef | null;
readonly addedRows: readonly RowId[];
readonly deletedRows: readonly RowId[];
readonly changedRows: readonly RowId[];
readonly dirtyCellCount: number;
readonly cellErrors: Readonly<Record<string, readonly string[]>>;
readonly rowErrors: Readonly<Record<RowId, readonly string[]>>;
readonly status: EditStatus;
}
edit.getSnapshot().
| Name | Signature | Description |
|---|---|---|
activeRowId | readonly activeRowId: RowId | null; | |
activeCell | readonly activeCell: CellRef | null; | |
addedRows | readonly addedRows: readonly RowId[]; | |
deletedRows | readonly deletedRows: readonly RowId[]; | |
changedRows | readonly changedRows: readonly RowId[]; | |
dirtyCellCount | readonly dirtyCellCount: number; | |
cellErrors | readonly cellErrors: Readonly<Record<string, readonly string[]>>; | |
rowErrors | readonly rowErrors: Readonly<Record<RowId, readonly string[]>>; | |
status | readonly status: EditStatus; |