View as Markdown

API reference: @salmonui/data-grid/engine

LocalDataPatchinterface

import type { LocalDataPatch } from '@salmonui/data-grid/engine';
interface LocalDataPatch<Row> {
    readonly append?: readonly Row[];
    readonly upsert?: readonly Row[];
    readonly remove?: readonly RowId[];
}
LocalDataPatch members (3)
NameSignatureDescription
appendoptionalreadonly append?: readonly Row[];
upsertoptionalreadonly upsert?: readonly Row[];

Replaces rows with a matching id; unknown ids are appended.

removeoptionalreadonly remove?: readonly RowId[];