API reference: @salmonui/data-grid/engine
EditAddRecordCommandtype
import type { EditAddRecordCommand } from '@salmonui/data-grid/engine';Also exported from @salmonui/data-grid/engine/edit.
type EditAddRecordCommand = {
type: 'edit.addRecord';
values?: JsonObject;
position?: NewRowPosition;
relativeTo?: RowId;
};
relativeTo (tree positions): the anchor row; default the focused row.
| Name | Signature | Description |
|---|---|---|
type | type: 'edit.addRecord'; | |
valuesoptional | values?: JsonObject; | |
positionoptional | position?: NewRowPosition; | |
relativeTooptional | relativeTo?: RowId; |