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

> The CopyOptions interface of @salmonui/data-grid/engine.

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

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

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

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: interface

```ts
interface CopyOptions {
    readonly includeHeaders?: boolean;
    readonly copyFormatted?: boolean;
    readonly getValue?: (rowId: RowId, columnId: ColumnId) => unknown;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `includeHeaders` | `readonly includeHeaders?: boolean;` | optional |  |
| `copyFormatted` | `readonly copyFormatted?: boolean;` | optional | Formatted text or raw values for this copy; default the `clipboard.copyFormatted` option. `column.clipboardFormatter` always wins. |
| `getValue` | `readonly getValue?: (rowId: RowId, columnId: ColumnId) => unknown;` | optional | Value of a cell (default: the engine value); the renderer passes draft values. |
