View as Markdown

API reference: @salmonui/scheduler

SchedulerICalendarExportOptionsinterface

import type { SchedulerICalendarExportOptions } from '@salmonui/scheduler';
interface SchedulerICalendarExportOptions<Row = unknown> {
    readonly fileName?: string | undefined;
    readonly rows?: readonly Row[] | undefined;
    readonly download?: boolean | undefined;
    readonly utc?: boolean | undefined;
    readonly uid?: ((row: Row) => string) | undefined;
    readonly extra?: ((row: Row) => Readonly<Record<string, string>> | undefined) | undefined;
    readonly calendarName?: string | undefined;
    readonly prodId?: string | undefined;
}
SchedulerICalendarExportOptions members (8)
NameSignatureDescription
fileNameoptionalreadonly fileName?: string | undefined;

.ics is added when missing. Default Schedule.ics.

rowsoptionalreadonly rows?: readonly Row[] | undefined;

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

downloadoptionalreadonly download?: boolean | undefined;
utcoptionalreadonly utc?: boolean | undefined;

Timed events as UTC instants instead of TZID wall times. Default false.

uidoptionalreadonly uid?: ((row: Row) => string) | undefined;

UID of an event row. Default String(id).

extraoptionalreadonly extra?: ((row: Row) => Readonly<Record<string, string>> | undefined) | undefined;

Further X-... properties of an event row.

calendarNameoptionalreadonly calendarName?: string | undefined;
prodIdoptionalreadonly prodId?: string | undefined;