# CsvOptions (@salmonui/data-grid/engine/export)

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

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

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

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

## Reference

Kind: interface

```ts
interface CsvOptions {
    readonly delimiter?: string;
    readonly lineBreak?: string;
    readonly includeHeaders?: boolean;
    readonly values?: 'formatted' | 'raw';
    readonly aggregateRows?: boolean;
    readonly bom?: boolean;
    readonly quoteAll?: boolean;
    readonly escapeFormulas?: boolean;
    readonly treeDepthColumn?: boolean | string;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `delimiter` | `readonly delimiter?: string;` | optional | Default `,`. |
| `lineBreak` | `readonly lineBreak?: string;` | optional | Default `\r\n` (RFC 4180). |
| `includeHeaders` | `readonly includeHeaders?: boolean;` | optional | Header line with the leaf header texts. Default true. |
| `values` | `readonly values?: 'formatted' \| 'raw';` | optional | `formatted` (default): the column display text. `raw`: numbers and booleans as is, dates as ISO 8601. |
| `aggregateRows` | `readonly aggregateRows?: boolean;` | optional | Group caption, group footer, and grid footer aggregate lines. Default true. |
| `bom` | `readonly bom?: boolean;` | optional | Prefix a UTF-8 byte order mark (Excel detects UTF-8). Default false. |
| `quoteAll` | `readonly quoteAll?: boolean;` | optional | Quote every field instead of only those that need it. Default false. |
| `escapeFormulas` | `readonly escapeFormulas?: boolean;` | optional | Neutralize spreadsheet formulas in text cells: a leading `'` on tab, CR, or `=`, `+`, `-`, `@` after optional whitespace. Real numbers are kept. Default true; `false` writes raw text. |
| `treeDepthColumn` | `readonly treeDepthColumn?: boolean \| string;` | optional | Tree mode: a leading column with each row's tree depth (0 for roots). `true` names it `Depth`; a string is the header text. Ignored outside tree mode. |
