View as Markdown

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.

EditPreview members (5)
NameSignatureDescription
cellsreadonly cells: readonly EditPreviewCell[];
addedRowIdsreadonly addedRowIds: readonly RowId[];
deletedRowIdsreadonly deletedRowIds: readonly RowId[];
dirtyCellCountreadonly dirtyCellCount: number;
invalidCellCountreadonly invalidCellCount: number;