# ExportColumn (@salmonui/core/export-model)

> The ExportColumn interface of @salmonui/core/export-model.

Canonical: https://salmonui.dev/docs/reference/core/export-model/ExportColumn

```ts
import type { ExportColumn } from '@salmonui/core/export-model';
```

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

## Reference

Kind: interface

```ts
interface ExportColumn<Row> {
    readonly index: number;
    readonly columnId: ColumnId;
    readonly field: string | null;
    readonly headerText: string;
    readonly type: ColumnType;
    readonly width: number;
    readonly textAlign: 'start' | 'center' | 'end';
    readonly format: FormatDescriptor | null;
    readonly freeze: 'left' | 'right' | null;
    readonly visible: boolean;
    readonly column: ExportSourceColumn<Row>;
    value(row: Row): unknown;
    text(row: Row): string;
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `index` | `readonly index: number;` |  | Position in `model.columns`. |
| `columnId` | `readonly columnId: ColumnId;` |  |  |
| `field` | `readonly field: string \| null;` |  |  |
| `headerText` | `readonly headerText: string;` |  |  |
| `type` | `readonly type: ColumnType;` |  |  |
| `width` | `readonly width: number;` |  | Width in CSS px (runtime width, else the numeric definition width, else 150). |
| `textAlign` | `readonly textAlign: 'start' \| 'center' \| 'end';` |  |  |
| `format` | `readonly format: FormatDescriptor \| null;` |  |  |
| `freeze` | `readonly freeze: 'left' \| 'right' \| null;` |  | Freeze zone of the column at export time. |
| `visible` | `readonly visible: boolean;` |  |  |
| `column` | `readonly column: ExportSourceColumn<Row>;` |  | The host column the export column was built from (the Data Grid passes its compiled column). |
| `value` | `value(row: Row): unknown;` |  | Typed value of a row (numbers, booleans, `Date` for date columns, strings). |
| `text` | `text(row: Row): string;` |  | Display text of a row (column formatter, `formatValue`). |
