View as Markdown

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().

EditSnapshot members (9)
NameSignatureDescription
activeRowIdreadonly activeRowId: RowId | null;
activeCellreadonly activeCell: CellRef | null;
addedRowsreadonly addedRows: readonly RowId[];
deletedRowsreadonly deletedRows: readonly RowId[];
changedRowsreadonly changedRows: readonly RowId[];
dirtyCellCountreadonly dirtyCellCount: number;
cellErrorsreadonly cellErrors: Readonly<Record<string, readonly string[]>>;
rowErrorsreadonly rowErrors: Readonly<Record<RowId, readonly string[]>>;
statusreadonly status: EditStatus;