API reference: @salmonui/data-grid/engine
EditPreviewinterface
import type { EditPreview } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/edit.
interface EditPreview {
readonly cells: readonly EditPreviewCell[];
readonly addedRowIds: readonly RowId[];
readonly deletedRowIds: readonly RowId[];
readonly dirtyCellCount: number;
readonly invalidCellCount: number;
}
edit.getBatchPreview(): non-mutating diff for a save-review UI.
| Name | Signature | Description |
|---|---|---|
cells | readonly cells: readonly EditPreviewCell[]; | |
addedRowIds | readonly addedRowIds: readonly RowId[]; | |
deletedRowIds | readonly deletedRowIds: readonly RowId[]; | |
dirtyCellCount | readonly dirtyCellCount: number; | |
invalidCellCount | readonly invalidCellCount: number; |