View as Markdown

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.

EditAddRecordCommand members (4)
NameSignatureDescription
typetype: 'edit.addRecord';
valuesoptionalvalues?: JsonObject;
positionoptionalposition?: NewRowPosition;
relativeTooptionalrelativeTo?: RowId;