# ExportParams

> _Since v0.1.1_

Parameters for a specific export operation

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| <span id="format"></span>`format` | <code><a href="/grid/plugins/export/types/exportformat/">ExportFormat</a></code> | Export format |
| <span id="filename"></span>`fileName?` | <code>string</code> | File name for the export (without extension) |
| `fileExtension?` | <code>string</code> | Override the file extension for Excel export. |
| <span id="columns"></span>`columns?` | <code>string[]</code> | Specific column fields to export |
| <span id="rowindices"></span>`rowIndices?` | <code>number[]</code> | Specific row indices to export |
| <span id="includeheaders"></span>`includeHeaders?` | <code>boolean</code> | Include column headers in export |
| <span id="processcell"></span>`processCell?` | <code>(value: any, field: string, row: any) =&gt; any</code> | Custom cell value processor |
| <span id="processheader"></span>`processHeader?` | <code>(header: string, field: string) =&gt; string</code> | Custom header processor |
| `processHeaderRow?` | <code>(cell: <a href="/grid/api/plugin-development/interfaces/headerrowcell/">HeaderRowCell</a>, rowIndex: number) =&gt; <a href="/grid/api/plugin-development/interfaces/headerrowcell/">HeaderRowCell</a> &#124; unknown</code> | Custom processor for cells in **plugin-contributed header rows** (e.g. the column-group header row above the leaf headers). Runs once per cell. <span class="since-badge" title="Introduced in v2.10.0">v2.10.0+</span> |
| `mode?` | <code><a href="/grid/plugins/export/types/exportmode/">ExportMode</a></code> | Controls how cell values are produced. See ExportMode. |
| <span id="excelstyles"></span>`excelStyles?` | <code><a href="/grid/plugins/export/interfaces/excelstyleconfig/">ExcelStyleConfig</a></code> | Excel style configuration (only applies to Excel export) |
| `headerRows?` | <code><a href="/grid/api/plugin-development/interfaces/headerrowcontribution/">HeaderRowContribution</a>[]</code> | Plugin-contributed extra header rows that sit **above** the leaf header row. Normally populated automatically from the `'collectHeaderRows'` broadcast in `ExportPlugin.export*()`; you only set it manually when calling the pure formatters (ExportPlugin.formatCsv / ExportPlugin.formatExcel) with pre-built row data. <span class="since-badge" title="Introduced in v2.10.0">v2.10.0+</span> |

### Property Details

#### `fileExtension`

Override the file extension for Excel export.

Defaults to `'.xls'` so the file opens in Excel on most operating systems.
Set to `'.xml'` to avoid Excel's "format mismatch" warning — but note
that `.xml` files open in a browser by default on most systems.

Only applies to Excel format exports.

---

#### `processHeaderRow`

Custom processor for cells in **plugin-contributed header rows** (e.g. the
column-group header row above the leaf headers). Runs once per cell.

Return `null` to blank a cell (its `span` is preserved so neighbours stay
aligned). If **every** cell in a row is blank after processing, the
entire row is dropped from the output. Return the same `cell` unchanged
to keep it as-is.

---

#### `mode`

Controls how cell values are produced. See ExportMode.

Default: `'raw'` — preserves current behaviour (passthrough + `processCell`).
Use `'formatted'` to apply column-type defaults and `column.format` so the
output mirrors what the grid displays.

---

#### `headerRows`

Plugin-contributed extra header rows that sit **above** the leaf header
row. Normally populated automatically from the `'collectHeaderRows'`
broadcast in `ExportPlugin.export*()`; you only set it manually when
calling the pure formatters (ExportPlugin.formatCsv /
ExportPlugin.formatExcel) with pre-built row data.

Ignored when `includeHeaders` is `false`.

---
