View as Markdown

API reference: @salmonui/scheduler

SchedulerCsvExportOptionsinterface

import type { SchedulerCsvExportOptions } from '@salmonui/scheduler';
interface SchedulerCsvExportOptions<Row = unknown> extends SchedulerTableExportOptions<Row> {
    readonly separator?: string | undefined;
    readonly includeHeaders?: boolean | undefined;
    readonly bom?: boolean | undefined;
    readonly escapeFormulas?: boolean | undefined;
}
SchedulerCsvExportOptions members (11, 7 inherited)
NameSignatureDescription
separatoroptionalreadonly separator?: string | undefined;

Field separator (separator). Default ,.

includeHeadersoptionalreadonly includeHeaders?: boolean | undefined;
bomoptionalreadonly bom?: boolean | undefined;

UTF-8 byte order mark. Default false.

escapeFormulasoptionalreadonly escapeFormulas?: boolean | undefined;

Neutralize spreadsheet formulas in text cells, as Data Grid CSV. Default true; false writes raw text.

fieldsoptionalinheritedfields?: readonly SchedulerExportField[];

Exported fields in order (fields / fieldsInfo). Default: every role whose property occurs in a row, then the resource fields.

headerTextsoptionalinheritedheaderTexts?: Readonly<Record<string, string>>;

Header text by role, mapped property or field. Default: the row property name.

includeOccurrencesoptionalinheritedincludeOccurrences?: boolean;

One row per occurrence of range (default the visible range) instead of one per stored row.

rangeoptionalinheritedrange?: { readonly start: Date; readonly end: Date; };
rowsoptionalinheritedrows?: readonly Row[];

Rows to export instead of the Scheduler's events (customData).

fileNameoptionalinheritedfileName?: string;

File name; the extension is added when missing. Default Schedule.

downloadoptionalinheriteddownload?: boolean;

False resolves to the file without downloading it. Default true.