# SchedulerTableExportOptions (@salmonui/scheduler)

> The SchedulerTableExportOptions interface of @salmonui/scheduler.

Canonical: https://salmonui.dev/docs/reference/scheduler/SchedulerTableExportOptions

```ts
import type { SchedulerTableExportOptions } from '@salmonui/scheduler';
```

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

## Reference

Kind: interface

```ts
interface SchedulerTableExportOptions<Row = unknown> {
    readonly fields?: readonly SchedulerExportField[] | undefined;
    readonly headerTexts?: Readonly<Record<string, string>> | undefined;
    readonly includeOccurrences?: boolean | undefined;
    readonly range?: {
        readonly start: Date;
        readonly end: Date;
    } | undefined;
    readonly rows?: readonly Row[] | undefined;
    readonly fileName?: string | undefined;
    readonly download?: boolean | undefined;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fields` | `readonly fields?: readonly SchedulerExportField[] \| undefined;` | optional | Exported fields in order (`fields` / `fieldsInfo`). Default: every role whose property occurs in a row, then the resource fields. |
| `headerTexts` | `readonly headerTexts?: Readonly<Record<string, string>> \| undefined;` | optional | Header text by role, mapped property or field. Default: the row property name. |
| `includeOccurrences` | `readonly includeOccurrences?: boolean \| undefined;` | optional | One row per occurrence of `range` (default the visible range) instead of one per stored row. |
| `range` | `readonly range?: {     readonly start: Date;     readonly end: Date; } \| undefined;` | optional |  |
| `rows` | `readonly rows?: readonly Row[] \| undefined;` | optional | Rows to export instead of the Scheduler's events (`customData`). |
| `fileName` | `readonly fileName?: string \| undefined;` | optional | File name; the extension is added when missing. Default `Schedule`. |
| `download` | `readonly download?: boolean \| undefined;` | optional | False resolves to the file without downloading it. Default true. |
