# EditAddRecordCommand (@salmonui/data-grid/engine)

> The EditAddRecordCommand type of @salmonui/data-grid/engine: relativeTo (tree positions): the anchor row; default the focused row.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine/EditAddRecordCommand

```ts
import type { EditAddRecordCommand } from '@salmonui/data-grid/engine';
```

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

Entry index: https://salmonui.dev/docs/reference/data-grid/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine.md).

## Reference

Kind: type

```ts
type EditAddRecordCommand = {
    type: 'edit.addRecord';
    values?: JsonObject;
    position?: NewRowPosition;
    relativeTo?: RowId;
};
```

`relativeTo` (tree positions): the anchor row; default the focused row.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: 'edit.addRecord';` |  |  |
| `values` | `values?: JsonObject;` | optional |  |
| `position` | `position?: NewRowPosition;` | optional |  |
| `relativeTo` | `relativeTo?: RowId;` | optional |  |
