View as Markdown

API reference: @salmonui/data-grid/engine

EditSetValuesCommandtype

import type { EditSetValuesCommand } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/edit.

type EditSetValuesCommand = {
    type: 'edit.setValues';
    cells: {
        rowId: RowId;
        columnId: ColumnId;
        value?: Json;
        from?: {
            rowId: RowId;
            columnId: ColumnId;
        };
    }[];
    commit?: boolean;
};

Paste, autofill, and bulk updates: drafts for many cells; commit writes them at once (any mode but batch). A cell takes value, or the current value (draft included) of the from cell (autofill).

EditSetValuesCommand members (3)
NameSignatureDescription
typetype: 'edit.setValues';
cellscells: { rowId: RowId; columnId: ColumnId; value?: Json; from?: { rowId: RowId; columnId: ColumnId; }; }[];
commitoptionalcommit?: boolean;