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).
| Name | Signature | Description |
|---|---|---|
type | type: 'edit.setValues'; | |
cells | cells: {
rowId: RowId;
columnId: ColumnId;
value?: Json;
from?: {
rowId: RowId;
columnId: ColumnId;
};
}[]; | |
commitoptional | commit?: boolean; |