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

> The ExportOptions interface of @salmonui/data-grid/engine/export: Options shared by exportCsv, exportXlsx, and exportPdf.

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

```ts
import type { ExportOptions } 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 ExportOptions<Row> {
    readonly pages?: 'current' | 'all';
    readonly includeHiddenColumns?: boolean;
    readonly rows?: readonly Row[];
    readonly columns?: readonly ExportColumnOption[];
    readonly fileName?: string;
    readonly hierarchy?: 'expanded' | 'all' | 'none';
    readonly tree?: 'expanded' | 'all';
}
```

Options shared by `exportCsv`, `exportXlsx`, and `exportPdf`.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `pages` | `readonly pages?: 'current' \| 'all';` | optional | `all` (default): every page of the current query. `current`: the current page as shown. |
| `includeHiddenColumns` | `readonly includeHiddenColumns?: boolean;` | optional | Include hidden columns. Default false. |
| `rows` | `readonly rows?: readonly Row[];` | optional | Rows to export instead of the grid rows (for example the selected rows), with the grid's columns. |
| `columns` | `readonly columns?: readonly ExportColumnOption[];` | optional | Export-only columns, in order. |
| `fileName` | `readonly fileName?: string;` | optional | Download name; the format extension is added when missing. Default `export`. |
| `hierarchy` | `readonly hierarchy?: 'expanded' \| 'all' \| 'none';` | optional | Detail and child-grid rows: `expanded` (default), `all`, or `none`. |
| `tree` | `readonly tree?: 'expanded' \| 'all';` | optional | Tree mode rows: `expanded` (default) exports the visible rows in pre-order; `all` exports every kept row regardless of expansion (XLSX `outlineCollapsed` then keeps the collapsed state). |
