# @salmonui/scheduler API reference

> 147 exported symbols of @salmonui/scheduler: 1 component, 13 functions, 104 interfaces, 26 types and 3 constants.

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

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

## Components

### Scheduler

Kind: component

Page: https://salmonui.dev/docs/reference/scheduler/Scheduler

```ts
function Scheduler<Row = Record<string, unknown>>(props: SchedulerProps<Row>): import("react").JSX.Element;
```

Props: [`SchedulerProps`](https://salmonui.dev/docs/reference/scheduler/SchedulerProps) (its members are the props)

## Functions

### RecurrenceEditor

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceEditor

```ts
function RecurrenceEditor(props: RecurrenceEditorProps): ReactElement;
```

### formatRecurrenceRule

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/formatRecurrenceRule

```ts
function formatRecurrenceRule(rule: RecurrenceRule): string;
```

Prints a rule in canonical part order (`FREQ`, `INTERVAL`, `BYDAY`, `BYMONTHDAY`, `BYMONTH`, `BYSETPOS`, `WKST`, `COUNT`, `UNTIL`); `parseRecurrenceRule` reads it back.

### fromZonedDateTime

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/fromZonedDateTime

```ts
function fromZonedDateTime(wallTime: DateTimeInput, zone: string): Date;
```

The instant (`Date`) of wall time `wallTime` in `zone`; DST gaps move forward and overlaps take the earlier instant (Temporal `'compatible'`). An invalid input gives an invalid `Date`.

### getRangeDays

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/getRangeDays

```ts
function getRangeDays(range: DateRange<PlainDateLike> | null | undefined): number;
```

Inclusive number of days of a range; 0 for null.

### getRecurrenceDates

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/getRecurrenceDates

```ts
function getRecurrenceDates(input: RecurrenceRule | string, options: RecurrenceDatesOptions): PlainDateTime[];
```

Occurrence wall times of a rule, as
`PlainDateTime`s in `timeZone`. Exceptions are skipped; never throws.

### getRecurrenceSummary

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/getRecurrenceSummary

```ts
function getRecurrenceSummary(input: RecurrenceRule | string | null, options?: RecurrenceSummaryOptions): string;
```

A localized one-line summary of a rule:
"Every 2 weeks on Monday and Wednesday, until Dec 31, 2026". `null` or
an empty rule reads as `never`; an invalid rule gives `''`.

### getTimeZoneOffset

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/getTimeZoneOffset

```ts
function getTimeZoneOffset(instant: InstantInput, zone: string): number | null;
```

Offset of `zone` from UTC at `instant` in minutes (`60` for Europe/Berlin in winter, `-300` for New York); null for an unknown zone or invalid instant.

### parseRecurrenceRule

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/parseRecurrenceRule

```ts
function parseRecurrenceRule(text: string): RecurrenceParseResult;
```

Parses an RRULE string (`FREQ=WEEKLY;BYDAY=MO,WE`, optionally prefixed
`RRULE:`). Unsupported or invalid parts give an error result; it never
throws.

### toDate

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/toDate

```ts
function toDate(value: PlainDateLike & Partial<PlainTimeLike>, timeZone?: string): Date;
```

The `Date` (instant) of a plain date or date-time: its wall time in
`timeZone` (DST resolved like Temporal `'compatible'`), else in the host
zone. An invalid value or zone gives an invalid `Date`.

### toPlainDate

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/toPlainDate

```ts
function toPlainDate(input: unknown, timeZone?: string): PlainDate | null;
```

Normalizes a `DateInput` (an invalid input is null; never throws).

### toPlainDateTime

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/toPlainDateTime

```ts
function toPlainDateTime(input: unknown, timeZone?: string): PlainDateTime | null;
```

Normalizes a `DateTimeInput`; a date-only input is midnight.

### toPlainTime

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/toPlainTime

```ts
function toPlainTime(input: unknown, timeZone?: string): PlainTime | null;
```

Normalizes a `TimeInput`; a date-time input keeps its time part.

### toZonedDateTime

Kind: function

Page: https://salmonui.dev/docs/reference/scheduler/toZonedDateTime

```ts
function toZonedDateTime(instant: InstantInput, zone: string): PlainDateTime | null;
```

Wall time of `instant` in `zone` as a `PlainDateTime`; null for an unknown zone or invalid instant.

## Interfaces

### DateRange

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/DateRange

```ts
interface DateRange<T = PlainDate> {
    readonly start: T;
    readonly end: T;
}
```

An inclusive range of two values.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: T;` |  |  |
| `end` | `readonly end: T;` |  |  |

### FieldValidation

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/FieldValidation

```ts
interface FieldValidation {
    readonly required?: boolean | string;
    readonly minLength?: number;
    readonly maxLength?: number;
    readonly pattern?: RegExp | string;
    readonly validate?: (value: unknown, values: Readonly<Record<string, unknown>>) => string | null | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `required` | `readonly required?: boolean \| string;` | optional |  |
| `minLength` | `readonly minLength?: number;` | optional |  |
| `maxLength` | `readonly maxLength?: number;` | optional |  |
| `pattern` | `readonly pattern?: RegExp \| string;` | optional |  |
| `validate` | `readonly validate?: (value: unknown, values: Readonly<Record<string, unknown>>) => string \| null \| undefined;` | optional | Returns an error message, or null / undefined when valid. |

### Occurrence

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/Occurrence

```ts
interface Occurrence<Row = unknown> {
    readonly key: string;
    readonly eventId: EventId;
    readonly start: number;
    readonly end: number;
    readonly allDay: boolean;
    readonly generated: boolean;
    readonly seriesId: EventId | undefined;
    readonly event: EventRecord<Row>;
}
```

One rendered instance of an event (a plain event, or an occurrence of a series).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `key` | `readonly key: string;` |  | Stable key: the event id, plus `@start` for generated occurrences. |
| `eventId` | `readonly eventId: EventId;` |  |  |
| `start` | `readonly start: number;` |  |  |
| `end` | `readonly end: number;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `generated` | `readonly generated: boolean;` |  | True for an occurrence generated from a recurrence rule. |
| `seriesId` | `readonly seriesId: EventId \| undefined;` |  | For occurrences of a series (generated or edited): the series event id. |
| `event` | `readonly event: EventRecord<Row>;` |  |  |

### PlainDate

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/PlainDate

```ts
interface PlainDate extends PlainDateLike {
    toString(): string;
    toJSON(): string;
}
```

A frozen ISO calendar date. `String(date)` and `JSON.stringify` give `YYYY-MM-DD`.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `toString` | `toString(): string;` |  | Returns a string representation of an object. |
| `toJSON` | `toJSON(): string;` |  |  |
| `year` | `year: number;` | inherited |  |
| `month` | `month: number;` | inherited |  |
| `day` | `day: number;` | inherited |  |

### PlainDateLike

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/PlainDateLike

```ts
interface PlainDateLike {
    readonly year: number;
    readonly month: number;
    readonly day: number;
}
```

Anything with ISO calendar date fields (`Temporal.PlainDate` included). Month is 1-12.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `year` | `readonly year: number;` |  |  |
| `month` | `readonly month: number;` |  |  |
| `day` | `readonly day: number;` |  |  |

### PlainDateTime

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/PlainDateTime

```ts
interface PlainDateTime extends PlainDate, Omit<PlainTime, 'toString' | 'toJSON'> {
}
```

A frozen date and wall-clock time. `String(value)` gives `YYYY-MM-DDTHH:mm:ss`.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `year` | `year: number;` | inherited |  |
| `month` | `month: number;` | inherited |  |
| `day` | `day: number;` | inherited |  |
| `hour` | `hour: number;` | inherited |  |
| `minute` | `minute: number;` | inherited |  |
| `second` | `second: number;` | inherited |  |
| `millisecond` | `millisecond: number;` | inherited |  |
| `toString` | `toString: () => string;` | inherited | Returns a string representation of an object. |
| `toJSON` | `toJSON: () => string;` | inherited |  |

### PlainTime

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/PlainTime

```ts
interface PlainTime extends Required<PlainTimeLike> {
    toString(): string;
    toJSON(): string;
}
```

A frozen wall-clock time. `String(time)` gives `HH:mm:ss` (`.sss` when milliseconds are set).

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `toString` | `toString(): string;` |  | Returns a string representation of an object. |
| `toJSON` | `toJSON(): string;` |  |  |
| `hour` | `hour: number;` | inherited |  |
| `minute` | `minute: number;` | inherited |  |
| `second` | `second: number;` | inherited |  |
| `millisecond` | `millisecond: number;` | inherited |  |

### PlainTimeLike

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/PlainTimeLike

```ts
interface PlainTimeLike {
    readonly hour: number;
    readonly minute: number;
    readonly second?: number;
    readonly millisecond?: number;
}
```

Anything with wall-clock time fields (`Temporal.PlainTime` included).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `hour` | `readonly hour: number;` |  |  |
| `minute` | `readonly minute: number;` |  |  |
| `second` | `readonly second?: number;` | optional |  |
| `millisecond` | `readonly millisecond?: number;` | optional |  |

### RecurrenceDatesOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceDatesOptions

```ts
interface RecurrenceDatesOptions {
    readonly start: DateTimeInput;
    readonly timeZone?: string;
    readonly exceptions?: readonly DateTimeInput[];
    readonly range?: {
        readonly start: DateTimeInput;
        readonly end: DateTimeInput;
    };
    readonly maxCount?: number;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: DateTimeInput;` |  | First occurrence (DTSTART); an instant is read as wall time in `timeZone`. |
| `timeZone` | `readonly timeZone?: string;` | optional |  |
| `exceptions` | `readonly exceptions?: readonly DateTimeInput[];` | optional | Occurrences to skip (EXDATE), as wall times or instants. |
| `range` | `readonly range?: {     readonly start: DateTimeInput;     readonly end: DateTimeInput; };` | optional | Optional window; inputs are wall times (or instants) in `timeZone`. Inclusive start, exclusive end. |
| `maxCount` | `readonly maxCount?: number;` | optional | At most this many dates (default 1,000; a rule without an end needs `range` or `maxCount`). |

### RecurrenceEditorChangeDetails

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceEditorChangeDetails

```ts
interface RecurrenceEditorChangeDetails {
    readonly rule: RecurrenceRule | null;
    readonly summary: string;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rule` | `readonly rule: RecurrenceRule \| null;` |  | The parsed rule, or `null` for "never". |
| `summary` | `readonly summary: string;` |  | The localized summary of the new rule. |

### RecurrenceEditorLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceEditorLocaleText

```ts
interface RecurrenceEditorLocaleText extends RecurrenceSummaryText {
    readonly label: LocaleMessage;
    readonly repeat: LocaleMessage;
    readonly frequencyNever: LocaleMessage;
    readonly frequencyDaily: LocaleMessage;
    readonly frequencyWeekly: LocaleMessage;
    readonly frequencyMonthly: LocaleMessage;
    readonly frequencyYearly: LocaleMessage;
    readonly interval: LocaleMessage;
    readonly unitDays: LocaleMessage;
    readonly unitWeeks: LocaleMessage;
    readonly unitMonths: LocaleMessage;
    readonly unitYears: LocaleMessage;
    readonly repeatOn: LocaleMessage;
    readonly onDay: LocaleMessage;
    readonly onThe: LocaleMessage;
    readonly dayOfMonth: LocaleMessage;
    readonly ordinal: LocaleMessage;
    readonly weekday: LocaleMessage;
    readonly month: LocaleMessage;
    readonly end: LocaleMessage;
    readonly endNever: LocaleMessage;
    readonly endUntil: LocaleMessage;
    readonly endCount: LocaleMessage;
    readonly untilDate: LocaleMessage;
    readonly occurrences: LocaleMessage;
    readonly summary: LocaleMessage;
}
```

Members (46):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label: LocaleMessage;` |  |  |
| `repeat` | `readonly repeat: LocaleMessage;` |  |  |
| `frequencyNever` | `readonly frequencyNever: LocaleMessage;` |  |  |
| `frequencyDaily` | `readonly frequencyDaily: LocaleMessage;` |  |  |
| `frequencyWeekly` | `readonly frequencyWeekly: LocaleMessage;` |  |  |
| `frequencyMonthly` | `readonly frequencyMonthly: LocaleMessage;` |  |  |
| `frequencyYearly` | `readonly frequencyYearly: LocaleMessage;` |  |  |
| `interval` | `readonly interval: LocaleMessage;` |  |  |
| `unitDays` | `readonly unitDays: LocaleMessage;` |  |  |
| `unitWeeks` | `readonly unitWeeks: LocaleMessage;` |  |  |
| `unitMonths` | `readonly unitMonths: LocaleMessage;` |  |  |
| `unitYears` | `readonly unitYears: LocaleMessage;` |  |  |
| `repeatOn` | `readonly repeatOn: LocaleMessage;` |  |  |
| `onDay` | `readonly onDay: LocaleMessage;` |  |  |
| `onThe` | `readonly onThe: LocaleMessage;` |  |  |
| `dayOfMonth` | `readonly dayOfMonth: LocaleMessage;` |  |  |
| `ordinal` | `readonly ordinal: LocaleMessage;` |  |  |
| `weekday` | `readonly weekday: LocaleMessage;` |  |  |
| `month` | `readonly month: LocaleMessage;` |  |  |
| `end` | `readonly end: LocaleMessage;` |  |  |
| `endNever` | `readonly endNever: LocaleMessage;` |  |  |
| `endUntil` | `readonly endUntil: LocaleMessage;` |  |  |
| `endCount` | `readonly endCount: LocaleMessage;` |  |  |
| `untilDate` | `readonly untilDate: LocaleMessage;` |  |  |
| `occurrences` | `readonly occurrences: LocaleMessage;` |  |  |
| `summary` | `readonly summary: LocaleMessage;` |  |  |
| `never` | `never: LocaleMessage;` | inherited |  |
| `daily` | `daily: LocaleMessage;` | inherited |  |
| `weekly` | `weekly: LocaleMessage;` | inherited |  |
| `weeklyOn` | `weeklyOn: LocaleMessage;` | inherited |  |
| `monthly` | `monthly: LocaleMessage;` | inherited |  |
| `monthlyOnDay` | `monthlyOnDay: LocaleMessage;` | inherited |  |
| `monthlyOnWeekday` | `monthlyOnWeekday: LocaleMessage;` | inherited |  |
| `yearly` | `yearly: LocaleMessage;` | inherited |  |
| `yearlyOnDay` | `yearlyOnDay: LocaleMessage;` | inherited |  |
| `yearlyOnWeekday` | `yearlyOnWeekday: LocaleMessage;` | inherited |  |
| `untilSuffix` | `untilSuffix: LocaleMessage;` | inherited |  |
| `countSuffix` | `countSuffix: LocaleMessage;` | inherited |  |
| `ordinalFirst` | `ordinalFirst: LocaleMessage;` | inherited |  |
| `ordinalSecond` | `ordinalSecond: LocaleMessage;` | inherited |  |
| `ordinalThird` | `ordinalThird: LocaleMessage;` | inherited |  |
| `ordinalFourth` | `ordinalFourth: LocaleMessage;` | inherited |  |
| `ordinalFifth` | `ordinalFifth: LocaleMessage;` | inherited |  |
| `ordinalLast` | `ordinalLast: LocaleMessage;` | inherited |  |
| `ordinalOther` | `ordinalOther: LocaleMessage;` | inherited |  |
| `lastDay` | `lastDay: LocaleMessage;` | inherited |  |

### RecurrenceEditorProps

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceEditorProps

```ts
interface RecurrenceEditorProps {
    readonly value?: string | null | undefined;
    readonly defaultValue?: string | null | undefined;
    readonly onValueChange?: ((rule: string | null, details: RecurrenceEditorChangeDetails) => void) | undefined;
    readonly frequencies?: readonly RecurrenceFrequencyOption[] | undefined;
    readonly endTypes?: readonly RecurrenceEndType[] | undefined;
    readonly defaultFrequency?: RecurrenceFrequencyOption | undefined;
    readonly start?: DateTimeInput | undefined;
    readonly min?: DateInput | undefined;
    readonly max?: DateInput | undefined;
    readonly locale?: string | undefined;
    readonly localeText?: Partial<RecurrenceEditorLocaleText> | undefined;
    readonly calendar?: string | undefined;
    readonly dateFormat?: Intl.DateTimeFormatOptions | string | undefined;
    readonly firstDayOfWeek?: number | undefined;
    readonly disabled?: boolean | undefined;
    readonly readOnly?: boolean | undefined;
    readonly dir?: 'ltr' | 'rtl' | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly id?: string | undefined;
    readonly 'aria-label'?: string | undefined;
    readonly 'aria-labelledby'?: string | undefined;
}
```

Members (22):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value?: string \| null \| undefined;` | optional | The RRULE string (`FREQ=WEEKLY;BYDAY=MO`), or `null` for "never". |
| `defaultValue` | `readonly defaultValue?: string \| null \| undefined;` | optional |  |
| `onValueChange` | `readonly onValueChange?: ((rule: string \| null, details: RecurrenceEditorChangeDetails) => void) \| undefined;` | optional |  |
| `frequencies` | `readonly frequencies?: readonly RecurrenceFrequencyOption[] \| undefined;` | optional | Repeat types offered, in order. Default all five. |
| `endTypes` | `readonly endTypes?: readonly RecurrenceEndType[] \| undefined;` | optional | End types offered. Default all three. |
| `defaultFrequency` | `readonly defaultFrequency?: RecurrenceFrequencyOption \| undefined;` | optional | Repeat type when the editor starts with no rule. Default `'never'`. |
| `start` | `readonly start?: DateTimeInput \| undefined;` | optional | First occurrence: anchors the weekday, month day and month defaults. |
| `min` | `readonly min?: DateInput \| undefined;` | optional | Bounds of the until date picker. |
| `max` | `readonly max?: DateInput \| undefined;` | optional |  |
| `locale` | `readonly locale?: string \| undefined;` | optional |  |
| `localeText` | `readonly localeText?: Partial<RecurrenceEditorLocaleText> \| undefined;` | optional |  |
| `calendar` | `readonly calendar?: string \| undefined;` | optional | `Intl` calendar id for month names and the until picker. |
| `dateFormat` | `readonly dateFormat?: Intl.DateTimeFormatOptions \| string \| undefined;` | optional | Format of the until date (the DatePicker `format`). |
| `firstDayOfWeek` | `readonly firstDayOfWeek?: number \| undefined;` | optional | 0 Sunday ... 6 Saturday; default from the locale. |
| `disabled` | `readonly disabled?: boolean \| undefined;` | optional |  |
| `readOnly` | `readonly readOnly?: boolean \| undefined;` | optional |  |
| `dir` | `readonly dir?: 'ltr' \| 'rtl' \| undefined;` | optional | Writing direction; inherited when omitted. |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional |  |
| `aria-labelledby` | `readonly 'aria-labelledby'?: string \| undefined;` | optional |  |

### RecurrenceRule

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceRule

```ts
interface RecurrenceRule {
    readonly frequency: RecurrenceFrequency;
    readonly interval: number;
    readonly count?: number;
    readonly until?: RecurrenceUntil;
    readonly byDay?: readonly RecurrenceWeekday[];
    readonly byMonthDay?: readonly number[];
    readonly byMonth?: readonly number[];
    readonly bySetPos?: readonly number[];
    readonly weekStart?: number;
}
```

A parsed recurrence rule. Frozen when produced by `parseRecurrenceRule`.

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `frequency` | `readonly frequency: RecurrenceFrequency;` |  |  |
| `interval` | `readonly interval: number;` |  | `INTERVAL`, at least 1. |
| `count` | `readonly count?: number;` | optional |  |
| `until` | `readonly until?: RecurrenceUntil;` | optional |  |
| `byDay` | `readonly byDay?: readonly RecurrenceWeekday[];` | optional |  |
| `byMonthDay` | `readonly byMonthDay?: readonly number[];` | optional |  |
| `byMonth` | `readonly byMonth?: readonly number[];` | optional |  |
| `bySetPos` | `readonly bySetPos?: readonly number[];` | optional |  |
| `weekStart` | `readonly weekStart?: number;` | optional | `WKST`, 0 Sunday ... 6 Saturday; RFC 5545 default Monday (1). |

### RecurrenceSummaryOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceSummaryOptions

```ts
interface RecurrenceSummaryOptions {
    readonly locale?: string;
    readonly localeText?: Partial<RecurrenceSummaryText>;
    readonly start?: DateTimeInput;
    readonly calendar?: string;
    readonly dateFormat?: Intl.DateTimeFormatOptions;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `locale` | `readonly locale?: string;` | optional |  |
| `localeText` | `readonly localeText?: Partial<RecurrenceSummaryText>;` | optional |  |
| `start` | `readonly start?: DateTimeInput;` | optional | First occurrence: supplies the default weekday, month day and month of rules that do not name them. |
| `calendar` | `readonly calendar?: string;` | optional | `Intl` calendar id for the until date and month names (values stay ISO). |
| `dateFormat` | `readonly dateFormat?: Intl.DateTimeFormatOptions;` | optional | Options for the until date (default `{ dateStyle: 'medium' }`). |

### RecurrenceSummaryText

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceSummaryText

```ts
interface RecurrenceSummaryText {
    readonly never: LocaleMessage;
    readonly daily: LocaleMessage;
    readonly weekly: LocaleMessage;
    readonly weeklyOn: LocaleMessage;
    readonly monthly: LocaleMessage;
    readonly monthlyOnDay: LocaleMessage;
    readonly monthlyOnWeekday: LocaleMessage;
    readonly yearly: LocaleMessage;
    readonly yearlyOnDay: LocaleMessage;
    readonly yearlyOnWeekday: LocaleMessage;
    readonly untilSuffix: LocaleMessage;
    readonly countSuffix: LocaleMessage;
    readonly ordinalFirst: LocaleMessage;
    readonly ordinalSecond: LocaleMessage;
    readonly ordinalThird: LocaleMessage;
    readonly ordinalFourth: LocaleMessage;
    readonly ordinalFifth: LocaleMessage;
    readonly ordinalLast: LocaleMessage;
    readonly ordinalOther: LocaleMessage;
    readonly lastDay: LocaleMessage;
}
```

Messages of `getRecurrenceSummary` (Data Grid message format; `{interval}`, `{days}`, `{day}`, `{ordinal}`,
`{weekday}`, `{month}`, `{date}`, `{count}`). The `one` form is used for an interval or count of exactly 1
in every locale, also where the plural rules have no `one` category.

Members (20):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `never` | `readonly never: LocaleMessage;` |  |  |
| `daily` | `readonly daily: LocaleMessage;` |  |  |
| `weekly` | `readonly weekly: LocaleMessage;` |  |  |
| `weeklyOn` | `readonly weeklyOn: LocaleMessage;` |  |  |
| `monthly` | `readonly monthly: LocaleMessage;` |  |  |
| `monthlyOnDay` | `readonly monthlyOnDay: LocaleMessage;` |  |  |
| `monthlyOnWeekday` | `readonly monthlyOnWeekday: LocaleMessage;` |  |  |
| `yearly` | `readonly yearly: LocaleMessage;` |  |  |
| `yearlyOnDay` | `readonly yearlyOnDay: LocaleMessage;` |  |  |
| `yearlyOnWeekday` | `readonly yearlyOnWeekday: LocaleMessage;` |  |  |
| `untilSuffix` | `readonly untilSuffix: LocaleMessage;` |  |  |
| `countSuffix` | `readonly countSuffix: LocaleMessage;` |  |  |
| `ordinalFirst` | `readonly ordinalFirst: LocaleMessage;` |  |  |
| `ordinalSecond` | `readonly ordinalSecond: LocaleMessage;` |  |  |
| `ordinalThird` | `readonly ordinalThird: LocaleMessage;` |  |  |
| `ordinalFourth` | `readonly ordinalFourth: LocaleMessage;` |  |  |
| `ordinalFifth` | `readonly ordinalFifth: LocaleMessage;` |  |  |
| `ordinalLast` | `readonly ordinalLast: LocaleMessage;` |  |  |
| `ordinalOther` | `readonly ordinalOther: LocaleMessage;` |  |  |
| `lastDay` | `readonly lastDay: LocaleMessage;` |  |  |

### RecurrenceUntil

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceUntil

```ts
interface RecurrenceUntil {
    readonly date: PlainDate;
    readonly time?: {
        readonly hour: number;
        readonly minute: number;
        readonly second: number;
    };
    readonly utc?: boolean;
}
```

The end of a rule (`UNTIL`): a date, or a date-time that is floating or UTC.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `date` | `readonly date: PlainDate;` |  |  |
| `time` | `readonly time?: {     readonly hour: number;     readonly minute: number;     readonly second: number; };` | optional | Wall time of the bound; absent for a date-only `UNTIL`. |
| `utc` | `readonly utc?: boolean;` | optional | True for the RFC 5545 UTC form (`20261231T235959Z`). |

### RecurrenceWeekday

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceWeekday

```ts
interface RecurrenceWeekday {
    readonly weekday: number;
    readonly ordinal?: number;
}
```

A `BYDAY` entry: `weekday` 0 Sunday ... 6 Saturday, `ordinal` 1..53 or -1..-53 (`2MO`, `-1FR`).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `weekday` | `readonly weekday: number;` |  |  |
| `ordinal` | `readonly ordinal?: number;` | optional |  |

### SchedulerActionResult

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerActionResult

```ts
interface SchedulerActionResult<Row = unknown> {
    readonly status: 'applied' | 'cancelled' | 'rejected' | 'pending';
    readonly rows: readonly Row[];
    readonly reason?: string;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `status` | `readonly status: 'applied' \| 'cancelled' \| 'rejected' \| 'pending';` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `reason` | `readonly reason?: string;` | optional |  |

### SchedulerAdaptive

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerAdaptive

```ts
interface SchedulerAdaptive {
    readonly breakpoint?: number | undefined;
}
```

`adaptive` options.

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `breakpoint` | `readonly breakpoint?: number \| undefined;` | optional | Container width (px) below which the adaptive layout applies; measured after hydration (default 640). |

### SchedulerAddEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerAddEvent

```ts
interface SchedulerAddEvent<Row> extends SchedulerEvent {
    readonly rows: readonly Row[];
    readonly data: readonly Row[];
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `data` | `readonly data: readonly Row[];` |  | The complete row array after the change (local data). |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerAfterPrintEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerAfterPrintEvent

```ts
interface SchedulerAfterPrintEvent extends SchedulerEvent {
    readonly options: SchedulerPrintOptions;
}
```

`onAfterPrint`: the window's `afterprint` after a `print()`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `options` | `readonly options: SchedulerPrintOptions;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerApi

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerApi

```ts
interface SchedulerApi<Row = unknown> {
    readonly element: HTMLElement | null;
    navigate(action: 'previous' | 'next' | 'today'): void;
    setView(view: string, date?: DateInput): void;
    setDate(date: DateInput): void;
    getDateRangeText(): string;
    getViewDates(): PlainDate[];
    addEvents(rows: readonly Row[]): SchedulerActionResult<Row>;
    saveEvent(row: Row, options?: {
        readonly scope?: EditScope;
        readonly occurrenceStart?: Date;
    }): SchedulerActionResult<Row>;
    deleteEvents(ids: readonly EventId[], options?: {
        readonly scope?: EditScope;
        readonly occurrenceStart?: Date;
    }): SchedulerActionResult<Row>;
    openEditor(target: EventId | {
        readonly start: DateInput | Date;
        readonly end?: DateInput | Date;
        readonly allDay?: boolean;
    }, options?: {
        readonly mode?: 'add' | 'edit' | 'editOccurrence' | 'editSeries';
        readonly occurrenceStart?: Date;
    }): void;
    closeEditor(): void;
    openQuickInfo(target: EventId | {
        readonly start: Date;
        readonly end: Date;
        readonly allDay?: boolean;
    }): void;
    closeQuickInfo(): void;
    openOverlapAlert(): void;
    closeOverlapAlert(): void;
    getEvents(options?: {
        readonly start?: Date;
        readonly end?: Date;
        readonly includeOccurrences?: boolean;
    }): SchedulerEventInfo<Row>[];
    getViewEvents(): SchedulerEventInfo<Row>[];
    getEventInfo(target: EventId | Element): SchedulerEventInfo<Row> | null;
    getCellInfo(target: Element): SchedulerCellInfo | null;
    getOccurrences(eventId: EventId): SchedulerEventInfo<Row>[];
    getOccurrencesInRange(start: Date, end: Date): SchedulerEventInfo<Row>[];
    getDeletedOccurrences(eventId: EventId): Date[];
    getBlockEvents(): Row[];
    isSlotAvailable(start: Date, end: Date, options?: {
        readonly resources?: Readonly<Record<string, readonly unknown[]>>;
        readonly excludeId?: EventId;
    }): boolean;
    getSelectedCells(): SchedulerCellInfo | null;
    setWorkHours(dates: readonly DateInput[], start: string, end: string): void;
    resetWorkHours(dates?: readonly DateInput[]): void;
    scrollToTime(time: string, options?: {
        readonly date?: DateInput;
    }): void;
    refresh(): void;
    reloadEvents(): void;
    setLoading(loading: boolean): void;
    getState(): SchedulerState;
    restoreState(state: Partial<SchedulerState>): void;
    getResource(id: unknown, resource?: string): SchedulerResourceInfo | null;
    getResources(): SchedulerResourceInfo[];
    expandResource(id: unknown): void;
    collapseResource(id: unknown): void;
    scrollToResource(id: unknown): void;
    getRenderedRange(): SchedulerRenderedRange | null;
    exportToExcel(options?: SchedulerExcelExportOptions<Row>): Promise<SchedulerExportFile<Uint8Array> | null>;
    exportToCsv(options?: SchedulerCsvExportOptions<Row>): Promise<SchedulerExportFile<string> | null>;
    exportToICalendar(options?: SchedulerICalendarExportOptions<Row>): Promise<SchedulerExportFile<string> | null>;
    importICalendar(source: string | Blob, options?: SchedulerICalendarImportOptions<Row>): Promise<SchedulerActionResult<Row>>;
    copy(): Promise<number>;
    cut(): Promise<number>;
    paste(target?: SchedulerPasteTarget): Promise<SchedulerActionResult<Row>>;
    closeTooltip(): void;
    print(options?: SchedulerPrintOptions): Promise<boolean>;
}
```

Members (48):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `element` | `readonly element: HTMLElement \| null;` |  |  |
| `navigate` | `navigate(action: 'previous' \| 'next' \| 'today'): void;` |  |  |
| `setView` | `setView(view: string, date?: DateInput): void;` |  |  |
| `setDate` | `setDate(date: DateInput): void;` |  |  |
| `getDateRangeText` | `getDateRangeText(): string;` |  |  |
| `getViewDates` | `getViewDates(): PlainDate[];` |  |  |
| `addEvents` | `addEvents(rows: readonly Row[]): SchedulerActionResult<Row>;` |  |  |
| `saveEvent` | `saveEvent(row: Row, options?: {     readonly scope?: EditScope;     readonly occurrenceStart?: Date; }): SchedulerActionResult<Row>;` |  |  |
| `deleteEvents` | `deleteEvents(ids: readonly EventId[], options?: {     readonly scope?: EditScope;     readonly occurrenceStart?: Date; }): SchedulerActionResult<Row>;` |  |  |
| `openEditor` | `openEditor(target: EventId \| {     readonly start: DateInput \| Date;     readonly end?: DateInput \| Date;     readonly allDay?: boolean; }, options?: {     readonly mode?: 'add' \| 'edit' \| 'editOccurrence' \| 'editSeries';     readonly occurrenceStart?: Date; }): void;` |  |  |
| `closeEditor` | `closeEditor(): void;` |  |  |
| `openQuickInfo` | `openQuickInfo(target: EventId \| {     readonly start: Date;     readonly end: Date;     readonly allDay?: boolean; }): void;` |  |  |
| `closeQuickInfo` | `closeQuickInfo(): void;` |  |  |
| `openOverlapAlert` | `openOverlapAlert(): void;` |  |  |
| `closeOverlapAlert` | `closeOverlapAlert(): void;` |  |  |
| `getEvents` | `getEvents(options?: {     readonly start?: Date;     readonly end?: Date;     readonly includeOccurrences?: boolean; }): SchedulerEventInfo<Row>[];` |  |  |
| `getViewEvents` | `getViewEvents(): SchedulerEventInfo<Row>[];` |  |  |
| `getEventInfo` | `getEventInfo(target: EventId \| Element): SchedulerEventInfo<Row> \| null;` |  |  |
| `getCellInfo` | `getCellInfo(target: Element): SchedulerCellInfo \| null;` |  |  |
| `getOccurrences` | `getOccurrences(eventId: EventId): SchedulerEventInfo<Row>[];` |  |  |
| `getOccurrencesInRange` | `getOccurrencesInRange(start: Date, end: Date): SchedulerEventInfo<Row>[];` |  |  |
| `getDeletedOccurrences` | `getDeletedOccurrences(eventId: EventId): Date[];` |  |  |
| `getBlockEvents` | `getBlockEvents(): Row[];` |  |  |
| `isSlotAvailable` | `isSlotAvailable(start: Date, end: Date, options?: {     readonly resources?: Readonly<Record<string, readonly unknown[]>>;     readonly excludeId?: EventId; }): boolean;` |  |  |
| `getSelectedCells` | `getSelectedCells(): SchedulerCellInfo \| null;` |  |  |
| `setWorkHours` | `setWorkHours(dates: readonly DateInput[], start: string, end: string): void;` |  |  |
| `resetWorkHours` | `resetWorkHours(dates?: readonly DateInput[]): void;` |  |  |
| `scrollToTime` | `scrollToTime(time: string, options?: {     readonly date?: DateInput; }): void;` |  |  |
| `refresh` | `refresh(): void;` |  |  |
| `reloadEvents` | `reloadEvents(): void;` |  |  |
| `setLoading` | `setLoading(loading: boolean): void;` |  |  |
| `getState` | `getState(): SchedulerState;` |  |  |
| `restoreState` | `restoreState(state: Partial<SchedulerState>): void;` |  |  |
| `getResource` | `getResource(id: unknown, resource?: string): SchedulerResourceInfo \| null;` |  | Resource items: one by id (optionally of one resource `name`), or every item. |
| `getResources` | `getResources(): SchedulerResourceInfo[];` |  |  |
| `expandResource` | `expandResource(id: unknown): void;` |  | Expand or collapse a parent resource row of timeline views. |
| `collapseResource` | `collapseResource(id: unknown): void;` |  |  |
| `scrollToResource` | `scrollToResource(id: unknown): void;` |  | Scrolls a resource row (timeline views) or column (grouped views) into view, also under virtualization. |
| `getRenderedRange` | `getRenderedRange(): SchedulerRenderedRange \| null;` |  |  |
| `exportToExcel` | `exportToExcel(options?: SchedulerExcelExportOptions<Row>): Promise<SchedulerExportFile<Uint8Array> \| null>;` |  | XLSX export through `exportWriters.excel`; resolves to the file, or null when prevented. |
| `exportToCsv` | `exportToCsv(options?: SchedulerCsvExportOptions<Row>): Promise<SchedulerExportFile<string> \| null>;` |  | CSV export; no writer package needed. |
| `exportToICalendar` | `exportToICalendar(options?: SchedulerICalendarExportOptions<Row>): Promise<SchedulerExportFile<string> \| null>;` |  | iCalendar export through `exportWriters.ics`. |
| `importICalendar` | `importICalendar(source: string \| Blob, options?: SchedulerICalendarImportOptions<Row>): Promise<SchedulerActionResult<Row>>;` |  | Adds the events of an iCalendar file or text through `exportWriters.ics`; fires `onBeforeAdd` / `onAdd`. |
| `copy` | `copy(): Promise<number>;` |  | Copies the selected events to the Scheduler clipboard; resolves to the number of copied events. |
| `cut` | `cut(): Promise<number>;` |  | As `copy`; the next `paste` moves the events instead of adding copies. |
| `paste` | `paste(target?: SchedulerPasteTarget): Promise<SchedulerActionResult<Row>>;` |  | Pastes the clipboard at `target` (default: the selected or focused cell), keeping the events' offsets. |
| `closeTooltip` | `closeTooltip(): void;` |  | Closes the open event tooltip. |
| `print` | `print(options?: SchedulerPrintOptions): Promise<boolean>;` |  | Prints the rendered view; resolves false when `onBeforePrint` cancels or outside a browser. |

### SchedulerBeforeAddEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeAddEvent

```ts
interface SchedulerBeforeAddEvent<Row> extends SchedulerCancelableEvent {
    readonly rows: readonly Row[];
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforeDeleteEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeDeleteEvent

```ts
interface SchedulerBeforeDeleteEvent<Row> extends SchedulerCancelableEvent {
    readonly rows: readonly Row[];
    readonly scope: EditScope;
    setScope(scope: EditScope): void;
    readonly occurrenceStart: Date | null;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `scope` | `readonly scope: EditScope;` |  |  |
| `setScope` | `setScope(scope: EditScope): void;` |  |  |
| `occurrenceStart` | `readonly occurrenceStart: Date \| null;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforeDropEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeDropEvent

```ts
interface SchedulerBeforeDropEvent<Row> extends SchedulerCancelableEvent, SchedulerDragFields<Row> {
    readonly previousStart: Date;
    readonly previousEnd: Date;
}
```

Members (15):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `previousStart` | `readonly previousStart: Date;` |  |  |
| `previousEnd` | `readonly previousEnd: Date;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |
| `row` | `row: Row;` | inherited |  |
| `rows` | `rows: readonly Row[];` | inherited | Every moved row (more than one with `dragOptions.multiple`). |
| `start` | `start: Date;` | inherited | Proposed start and end of the dragged or resized event. |
| `end` | `end: Date;` | inherited |  |
| `allDay` | `allDay: boolean;` | inherited |  |
| `resourceIds` | `resourceIds: Readonly<Record<string, readonly unknown[]>> \| null;` | inherited | Resource ids per resource field after the drop, or null when they do not change. |
| `element` | `element: Element;` | inherited | The event element the gesture started on. |
| `target` | `target: Element \| null;` | inherited | The cell under the pointer, or null outside the view. |
| `edge` | `edge?: "end" \| "start";` | optional, inherited | Resized edge (resize events). |

### SchedulerBeforeExportEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeExportEvent

```ts
interface SchedulerBeforeExportEvent<Row = unknown> extends SchedulerCancelableEvent {
    readonly format: SchedulerExportFormat;
    readonly options: SchedulerExcelExportOptions<Row> | SchedulerCsvExportOptions<Row> | SchedulerICalendarExportOptions<Row>;
}
```

`onBeforeExport`: `preventDefault()` cancels; the export resolves to null.

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `format` | `readonly format: SchedulerExportFormat;` |  |  |
| `options` | `readonly options: SchedulerExcelExportOptions<Row> \| SchedulerCsvExportOptions<Row> \| SchedulerICalendarExportOptions<Row>;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforeNavigateEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeNavigateEvent

```ts
interface SchedulerBeforeNavigateEvent extends SchedulerCancelableEvent {
    readonly kind: 'date' | 'view';
    readonly view: string;
    readonly date: PlainDate;
    readonly previousView: string;
    readonly previousDate: PlainDate;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'date' \| 'view';` |  |  |
| `view` | `readonly view: string;` |  |  |
| `date` | `readonly date: PlainDate;` |  |  |
| `previousView` | `readonly previousView: string;` |  |  |
| `previousDate` | `readonly previousDate: PlainDate;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforePasteEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforePasteEvent

```ts
interface SchedulerBeforePasteEvent<Row = unknown> extends SchedulerCancelableEvent {
    data: readonly Row[];
    readonly cut: boolean;
    readonly start: Date;
}
```

`onBeforePaste`: `preventDefault()` cancels; replace `data` to paste other rows.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `data: readonly Row[];` |  | The rows to add (copy) or the moved rows (cut), with their new times. |
| `cut` | `readonly cut: boolean;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforePopupOpenEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforePopupOpenEvent

```ts
interface SchedulerBeforePopupOpenEvent<Row> extends SchedulerCancelableEvent {
    readonly popup: SchedulerPopup;
    readonly row: Row | null;
    readonly start: Date | null;
    readonly end: Date | null;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `popup` | `readonly popup: SchedulerPopup;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `start` | `readonly start: Date \| null;` |  |  |
| `end` | `readonly end: Date \| null;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforePrintEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforePrintEvent

```ts
interface SchedulerBeforePrintEvent extends SchedulerCancelableEvent {
    readonly options: SchedulerPrintOptions;
}
```

`onBeforePrint`: `preventDefault()` cancels; `print()` resolves false.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `options` | `readonly options: SchedulerPrintOptions;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforeSaveEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeSaveEvent

```ts
interface SchedulerBeforeSaveEvent<Row> extends SchedulerCancelableEvent {
    readonly row: Row;
    readonly previous: Row;
    readonly scope: EditScope;
    setScope(scope: EditScope): void;
    readonly occurrenceStart: Date | null;
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `previous` | `readonly previous: Row;` |  |  |
| `scope` | `readonly scope: EditScope;` |  | The scope of a recurring edit; assign through `setScope` when `editing.recurrencePrompt` is false. |
| `setScope` | `setScope(scope: EditScope): void;` |  |  |
| `occurrenceStart` | `readonly occurrenceStart: Date \| null;` |  | Original start of the edited occurrence of a series. |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerBeforeTooltipOpenEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerBeforeTooltipOpenEvent

```ts
interface SchedulerBeforeTooltipOpenEvent<Row = unknown> extends SchedulerCancelableEvent, SchedulerTooltipContext<Row> {
}
```

`onBeforeTooltipOpen`: `preventDefault()` keeps the tooltip closed.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |
| `occurrence` | `occurrence: SchedulerEventInfo<Row>;` | inherited |  |
| `row` | `row: Row;` | inherited |  |
| `element` | `element: Element;` | inherited |  |

### SchedulerCancelableEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCancelableEvent

```ts
interface SchedulerCancelableEvent extends SchedulerEvent {
    readonly defaultPrevented: boolean;
    preventDefault(): void;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `defaultPrevented` | `readonly defaultPrevented: boolean;` |  |  |
| `preventDefault` | `preventDefault(): void;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerCellClickEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellClickEvent

```ts
interface SchedulerCellClickEvent extends SchedulerCancelableEvent {
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly element: Element | null;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `element` | `readonly element: Element \| null;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerCellContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellContext

```ts
interface SchedulerCellContext {
    readonly part: SchedulerCellPart;
    readonly date: PlainDate;
    readonly start: Date;
    readonly end: Date;
    readonly view: SchedulerViewType;
    readonly work: boolean;
    readonly resource?: SchedulerResourceInfo | undefined;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `part` | `readonly part: SchedulerCellPart;` |  |  |
| `date` | `readonly date: PlainDate;` |  |  |
| `start` | `readonly start: Date;` |  | Start and end of the cell (instants). |
| `end` | `readonly end: Date;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |
| `work` | `readonly work: boolean;` |  | Inside work hours (work cells) or a work day. |
| `resource` | `readonly resource?: SchedulerResourceInfo \| undefined;` | optional | The resource of the cell in grouped views (the innermost level). |

### SchedulerCellInfo

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellInfo

```ts
interface SchedulerCellInfo {
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |

### SchedulerCellProps

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellProps

```ts
interface SchedulerCellProps {
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly title?: string;
    readonly [data: `data-${string}`]: string | number | boolean | undefined;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
| `title` | `readonly title?: string;` | optional |  |

### SchedulerCellSelection

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellSelection

```ts
interface CellSelection {
    readonly start: number;
    readonly end: number;
    readonly allDay: boolean;
    readonly resources?: Readonly<Record<string, readonly unknown[]>> | undefined;
    readonly group?: string | undefined;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: number;` |  |  |
| `end` | `readonly end: number;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `resources` | `readonly resources?: Readonly<Record<string, readonly unknown[]>> \| undefined;` | optional |  |
| `group` | `readonly group?: string \| undefined;` | optional | Key of the resource group the cells belong to (grouped views). |

### SchedulerCellSelectionChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellSelectionChangeEvent

```ts
interface SchedulerCellSelectionChangeEvent extends SchedulerEvent {
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerContextMenuItemClickEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerContextMenuItemClickEvent

```ts
interface SchedulerContextMenuItemClickEvent<Row = unknown> extends SchedulerCancelableEvent {
    readonly id: string;
    readonly item: SchedulerMenuItem | undefined;
    readonly context: SchedulerContextMenuContext<Row>;
}
```

`onContextMenuItemClick`: a chosen item. The default items (`newEvent`,
`newRecurringEvent` and `today` on cells, `edit` and `delete` on events)
run their action unless `preventDefault()` is called.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `item` | `readonly item: SchedulerMenuItem \| undefined;` |  |  |
| `context` | `readonly context: SchedulerContextMenuContext<Row>;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerCsvExportOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCsvExportOptions

```ts
interface SchedulerCsvExportOptions<Row = unknown> extends SchedulerTableExportOptions<Row> {
    readonly separator?: string | undefined;
    readonly includeHeaders?: boolean | undefined;
    readonly bom?: boolean | undefined;
    readonly escapeFormulas?: boolean | undefined;
}
```

Members (11):

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

### SchedulerDataLoadEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDataLoadEvent

```ts
interface SchedulerDataLoadEvent<Row> extends SchedulerEvent {
    readonly range: {
        readonly start: Date;
        readonly end: Date;
    };
    readonly rows: readonly Row[];
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `range` | `readonly range: {     readonly start: Date;     readonly end: Date; };` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerDataSource

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDataSource

```ts
interface SchedulerDataSource<Row> {
    read(request: SchedulerReadRequest): Promise<SchedulerReadResult<Row>> | SchedulerReadResult<Row>;
    write?(request: SchedulerWriteRequest<Row>): Promise<SchedulerWriteResult<Row> | void> | SchedulerWriteResult<Row> | void;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `read` | `read(request: SchedulerReadRequest): Promise<SchedulerReadResult<Row>> \| SchedulerReadResult<Row>;` |  |  |
| `write` | `write?(request: SchedulerWriteRequest<Row>): Promise<SchedulerWriteResult<Row> \| void> \| SchedulerWriteResult<Row> \| void;` | optional |  |

### SchedulerDateChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDateChangeEvent

```ts
interface SchedulerDateChangeEvent extends SchedulerEvent {
    readonly date: PlainDate;
    readonly previousDate: PlainDate;
}
```

Change events.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `date` | `readonly date: PlainDate;` |  |  |
| `previousDate` | `readonly previousDate: PlainDate;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerDateRangeContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDateRangeContext

```ts
interface SchedulerDateRangeContext {
    readonly start: PlainDate;
    readonly end: PlainDate;
    readonly text: string;
    readonly view: SchedulerViewType;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: PlainDate;` |  |  |
| `end` | `readonly end: PlainDate;` |  |  |
| `text` | `readonly text: string;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |

### SchedulerDayHeaderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDayHeaderContext

```ts
interface SchedulerDayHeaderContext {
    readonly weekday: number | null;
    readonly day: number | null;
    readonly text: string;
    readonly view: SchedulerViewType;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `weekday` | `readonly weekday: number \| null;` |  | Year view weekday headers: the weekday, 0 Sunday (null in Timeline Year). |
| `day` | `readonly day: number \| null;` |  | Timeline Year day headers: the day of the month, 1-31 (null in the Year view). |
| `text` | `readonly text: string;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |

### SchedulerDeleteEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDeleteEvent

```ts
interface SchedulerDeleteEvent<Row> extends SchedulerEvent {
    readonly deleted: readonly Row[];
    readonly changed: readonly Row[];
    readonly scope: EditScope;
    readonly data: readonly Row[];
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `deleted` | `readonly deleted: readonly Row[];` |  |  |
| `changed` | `readonly changed: readonly Row[];` |  |  |
| `scope` | `readonly scope: EditScope;` |  |  |
| `data` | `readonly data: readonly Row[];` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerDialogContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDialogContext

```ts
interface SchedulerDialogContext<Row = unknown> {
    readonly isNew: boolean;
    readonly values: Readonly<Record<string, unknown>>;
    readonly setValue: (role: string, value: unknown) => void;
    readonly errors: Readonly<Record<string, string>>;
    readonly row: Row | null;
    readonly save: () => void;
    readonly cancel: () => void;
    readonly delete: () => void;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `isNew` | `readonly isNew: boolean;` |  |  |
| `values` | `readonly values: Readonly<Record<string, unknown>>;` |  | The editor values by role (`title`, `start`, `end`, ...), with resource fields and the row's other properties by their own names; `setValue` on such a name writes that property. |
| `setValue` | `readonly setValue: (role: string, value: unknown) => void;` |  |  |
| `errors` | `readonly errors: Readonly<Record<string, string>>;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `save` | `readonly save: () => void;` |  |  |
| `cancel` | `readonly cancel: () => void;` |  |  |
| `delete` | `readonly delete: () => void;` |  |  |

### SchedulerDragEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDragEvent

```ts
interface SchedulerDragEvent<Row> extends SchedulerEvent, SchedulerDragFields<Row> {
}
```

Members (11):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `row` | `row: Row;` | inherited |  |
| `rows` | `rows: readonly Row[];` | inherited | Every moved row (more than one with `dragOptions.multiple`). |
| `start` | `start: Date;` | inherited | Proposed start and end of the dragged or resized event. |
| `end` | `end: Date;` | inherited |  |
| `allDay` | `allDay: boolean;` | inherited |  |
| `resourceIds` | `resourceIds: Readonly<Record<string, readonly unknown[]>> \| null;` | inherited | Resource ids per resource field after the drop, or null when they do not change. |
| `element` | `element: Element;` | inherited | The event element the gesture started on. |
| `target` | `target: Element \| null;` | inherited | The cell under the pointer, or null outside the view. |
| `edge` | `edge?: "end" \| "start";` | optional, inherited | Resized edge (resize events). |

### SchedulerDragOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDragOptions

```ts
interface SchedulerDragOptions {
    readonly snapMinutes?: number | undefined;
    readonly autoScroll?: boolean | undefined;
    readonly navigateOnEdge?: boolean | {
        readonly delay?: number | undefined;
    } | undefined;
    readonly excludeSelector?: string | undefined;
    readonly multiple?: boolean | undefined;
    readonly dragOutArea?: Element | string | null | undefined;
    readonly group?: string | undefined;
}
```

`dragOptions`: drag, resize, multi-drag, drag out and drag between Schedulers.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `snapMinutes` | `readonly snapMinutes?: number \| undefined;` | optional | Minutes a timed start or end snaps to (default the slot length, `timeScale.interval / slotCount`). |
| `autoScroll` | `readonly autoScroll?: boolean \| undefined;` | optional | Scroll the view while the pointer is near its edges (default true). |
| `navigateOnEdge` | `readonly navigateOnEdge?: boolean \| {     readonly delay?: number \| undefined; } \| undefined;` | optional | Navigate to the previous / next range after the pointer rests at the inline edge of the Scheduler (default false; `delay` 1000 ms). |
| `excludeSelector` | `readonly excludeSelector?: string \| undefined;` | optional | A pointer down inside an element matching this selector does not drag or resize. |
| `multiple` | `readonly multiple?: boolean \| undefined;` | optional | Dragging a selected event moves every selected event by the same offset. |
| `dragOutArea` | `readonly dragOutArea?: Element \| string \| null \| undefined;` | optional | Element or selector: dropping an event over it fires `onEventDragOut` instead of moving the event. |
| `group` | `readonly group?: string \| undefined;` | optional | Schedulers with the same group accept each other's events; one registry per document. |

### SchedulerDragOutEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDragOutEvent

```ts
interface SchedulerDragOutEvent<Row> extends SchedulerEvent {
    readonly row: Row;
    readonly rows: readonly Row[];
    readonly target: Element;
    readonly clientX: number;
    readonly clientY: number;
}
```

`onEventDragOut`: an event dropped over `dragOptions.dragOutArea`.

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `target` | `readonly target: Element;` |  |  |
| `clientX` | `readonly clientX: number;` |  |  |
| `clientY` | `readonly clientY: number;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerDragStartEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDragStartEvent

```ts
interface SchedulerDragStartEvent<Row> extends SchedulerCancelableEvent, SchedulerDragFields<Row> {
}
```

Members (13):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |
| `row` | `row: Row;` | inherited |  |
| `rows` | `rows: readonly Row[];` | inherited | Every moved row (more than one with `dragOptions.multiple`). |
| `start` | `start: Date;` | inherited | Proposed start and end of the dragged or resized event. |
| `end` | `end: Date;` | inherited |  |
| `allDay` | `allDay: boolean;` | inherited |  |
| `resourceIds` | `resourceIds: Readonly<Record<string, readonly unknown[]>> \| null;` | inherited | Resource ids per resource field after the drop, or null when they do not change. |
| `element` | `element: Element;` | inherited | The event element the gesture started on. |
| `target` | `target: Element \| null;` | inherited | The cell under the pointer, or null outside the view. |
| `edge` | `edge?: "end" \| "start";` | optional, inherited | Resized edge (resize events). |

### SchedulerDropEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerDropEvent

```ts
interface SchedulerDropEvent<Row> extends SchedulerEvent, SchedulerDragFields<Row> {
    readonly result: SchedulerActionResult<Row>;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `result` | `readonly result: SchedulerActionResult<Row>;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `row` | `row: Row;` | inherited |  |
| `rows` | `rows: readonly Row[];` | inherited | Every moved row (more than one with `dragOptions.multiple`). |
| `start` | `start: Date;` | inherited | Proposed start and end of the dragged or resized event. |
| `end` | `end: Date;` | inherited |  |
| `allDay` | `allDay: boolean;` | inherited |  |
| `resourceIds` | `resourceIds: Readonly<Record<string, readonly unknown[]>> \| null;` | inherited | Resource ids per resource field after the drop, or null when they do not change. |
| `element` | `element: Element;` | inherited | The event element the gesture started on. |
| `target` | `target: Element \| null;` | inherited | The cell under the pointer, or null outside the view. |
| `edge` | `edge?: "end" \| "start";` | optional, inherited | Resized edge (resize events). |

### SchedulerEditing

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEditing

```ts
interface SchedulerEditing<Row = unknown> {
    readonly add?: boolean;
    readonly edit?: boolean;
    readonly delete?: boolean;
    readonly dialog?: boolean;
    readonly following?: boolean;
    readonly recurrencePrompt?: boolean;
    readonly validateRecurrence?: boolean;
    readonly createId?: (row: Row) => EventId;
    readonly renderDialog?: (ctx: SchedulerDialogContext<Row>) => ReactNode;
    readonly renderDialogHeader?: (ctx: SchedulerDialogContext<Row>) => ReactNode;
    readonly renderDialogFooter?: (ctx: SchedulerDialogContext<Row>) => ReactNode;
    readonly inline?: boolean;
}
```

Members (12):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `add` | `readonly add?: boolean;` | optional |  |
| `edit` | `readonly edit?: boolean;` | optional |  |
| `delete` | `readonly delete?: boolean;` | optional |  |
| `dialog` | `readonly dialog?: boolean;` | optional | The built-in editor dialog (default true). |
| `following` | `readonly following?: boolean;` | optional | Offer the `'following'` scope. |
| `recurrencePrompt` | `readonly recurrencePrompt?: boolean;` | optional | Ask for the scope of recurring edits and deletes (default true). |
| `validateRecurrence` | `readonly validateRecurrence?: boolean;` | optional | Validate recurrence rules and occurrence moves (default true). |
| `createId` | `readonly createId?: (row: Row) => EventId;` | optional | Id of a new event (default: a counter above the largest numeric id, else a random string). |
| `renderDialog` | `readonly renderDialog?: (ctx: SchedulerDialogContext<Row>) => ReactNode;` | optional | Replaces the editor dialog body. |
| `renderDialogHeader` | `readonly renderDialogHeader?: (ctx: SchedulerDialogContext<Row>) => ReactNode;` | optional |  |
| `renderDialogFooter` | `readonly renderDialogFooter?: (ctx: SchedulerDialogContext<Row>) => ReactNode;` | optional |  |
| `inline` | `readonly inline?: boolean;` | optional | Typing in a focused cell creates an event; Enter on an event edits its title in place. A cell click then selects without the cell quick info. |

### SchedulerErrorEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerErrorEvent

```ts
interface SchedulerErrorEvent extends SchedulerEvent {
    readonly error: unknown;
    readonly action: 'read' | 'add' | 'save' | 'delete';
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `error` | `readonly error: unknown;` |  |  |
| `action` | `readonly action: 'read' \| 'add' \| 'save' \| 'delete';` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEvent

```ts
interface SchedulerEvent {
    readonly type: string;
    readonly source: SchedulerEventSource;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: string;` |  |  |
| `source` | `readonly source: SchedulerEventSource;` |  |  |

### SchedulerEventClickEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventClickEvent

```ts
interface SchedulerEventClickEvent<Row> extends SchedulerCancelableEvent {
    readonly row: Row;
    readonly start: Date;
    readonly end: Date;
    readonly element: Element | null;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `element` | `readonly element: Element \| null;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerEventFieldConfig

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventFieldConfig

```ts
interface SchedulerEventFieldConfig {
    readonly field?: string;
    readonly label?: string;
    readonly defaultValue?: unknown;
    readonly validation?: FieldValidation;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field?: string;` | optional |  |
| `label` | `readonly label?: string;` | optional |  |
| `defaultValue` | `readonly defaultValue?: unknown;` | optional |  |
| `validation` | `readonly validation?: FieldValidation;` | optional |  |

### SchedulerEventInfo

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventInfo

```ts
interface SchedulerEventInfo<Row> {
    readonly row: Row;
    readonly id: EventId;
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly seriesId: EventId | null;
    readonly occurrenceStart: Date | null;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `id` | `readonly id: EventId;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `seriesId` | `readonly seriesId: EventId \| null;` |  | Series id for occurrences of a recurring event. |
| `occurrenceStart` | `readonly occurrenceStart: Date \| null;` |  | Original start of a generated occurrence. |

### SchedulerEventLayout

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventLayout

```ts
interface SchedulerEventLayout {
    readonly spannedPlacement?: 'allDayRow' | 'timeSlot';
    readonly maxHeight?: number;
    readonly moreIndicator?: boolean;
    readonly minimumDuration?: number;
    readonly ignoreWhitespace?: boolean;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `spannedPlacement` | `readonly spannedPlacement?: 'allDayRow' \| 'timeSlot';` | optional | Timed events that cross midnight: the all-day row (default) or split into the time slots. |
| `maxHeight` | `readonly maxHeight?: number;` | optional | Lanes of stacked events per month cell (and the all-day row) before "+N more" (default 3 / all). |
| `moreIndicator` | `readonly moreIndicator?: boolean;` | optional | Show the "+N more" part (default true). |
| `minimumDuration` | `readonly minimumDuration?: number;` | optional | Day views: events shorter than this render this tall, in minutes (default 0). |
| `ignoreWhitespace` | `readonly ignoreWhitespace?: boolean;` | optional | Month view: lanes take only the rows they need (no blank space left by hidden lanes). |

### SchedulerEventProps

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventProps

```ts
interface SchedulerEventProps extends SchedulerCellProps {
    readonly hidden?: boolean;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `hidden` | `readonly hidden?: boolean;` | optional |  |
| `className` | `className?: string;` | optional, inherited |  |
| `style` | `style?: CSSProperties;` | optional, inherited |  |
| `title` | `title?: string;` | optional, inherited |  |

### SchedulerEventPropsContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventPropsContext

```ts
interface SchedulerEventPropsContext<Row = unknown> extends SchedulerEventRenderContext<Row> {
}
```

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `row: Row;` | inherited |  |
| `id` | `id: EventId;` | inherited |  |
| `title` | `title: string;` | inherited |  |
| `start` | `start: Date;` | inherited |  |
| `end` | `end: Date;` | inherited |  |
| `allDay` | `allDay: boolean;` | inherited |  |
| `view` | `view: SchedulerViewType;` | inherited |  |
| `recurring` | `recurring: boolean;` | inherited | True for an occurrence of a recurring series. |
| `selected` | `selected: boolean;` | inherited |  |
| `timeText` | `timeText: string;` | inherited | Formatted time range. |

### SchedulerEventRenderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventRenderContext

```ts
interface SchedulerEventRenderContext<Row = unknown> {
    readonly row: Row;
    readonly id: EventId;
    readonly title: string;
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly view: SchedulerViewType;
    readonly recurring: boolean;
    readonly selected: boolean;
    readonly timeText: string;
}
```

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `id` | `readonly id: EventId;` |  |  |
| `title` | `readonly title: string;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |
| `recurring` | `readonly recurring: boolean;` |  | True for an occurrence of a recurring series. |
| `selected` | `readonly selected: boolean;` |  |  |
| `timeText` | `readonly timeText: string;` |  | Formatted time range. |

### SchedulerEventSelectionChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventSelectionChangeEvent

```ts
interface SchedulerEventSelectionChangeEvent<Row> extends SchedulerEvent {
    readonly keys: readonly string[];
    readonly rows: readonly Row[];
}
```

`onEventSelectionChange`: the selected events after a click, Ctrl / Cmd + click (toggle) or Shift + click (range).

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `keys` | `readonly keys: readonly string[];` |  | Selected occurrence keys (`id`, or `id@start` for a generated occurrence). |
| `rows` | `readonly rows: readonly Row[];` |  | Rows of the selected events (a series once). |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerExcelExportOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExcelExportOptions

```ts
interface SchedulerExcelExportOptions<Row = unknown> extends SchedulerTableExportOptions<Row> {
    readonly sheetName?: string | undefined;
}
```

Members (8):

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

### SchedulerExportEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExportEvent

```ts
interface SchedulerExportEvent<Row = unknown> extends SchedulerEvent {
    readonly format: SchedulerExportFormat;
    readonly options: SchedulerExcelExportOptions<Row> | SchedulerCsvExportOptions<Row> | SchedulerICalendarExportOptions<Row>;
    readonly file: SchedulerExportFile;
}
```

`onExport`: the written file, before the download.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `format` | `readonly format: SchedulerExportFormat;` |  |  |
| `options` | `readonly options: SchedulerExcelExportOptions<Row> \| SchedulerCsvExportOptions<Row> \| SchedulerICalendarExportOptions<Row>;` |  |  |
| `file` | `readonly file: SchedulerExportFile;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerExportFile

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExportFile

```ts
interface SchedulerExportFile<Data = Uint8Array | string> {
    readonly fileName: string;
    readonly mimeType: string;
    readonly data: Data;
}
```

A file of `exportToExcel`, `exportToCsv` or `exportToICalendar`.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName: string;` |  |  |
| `mimeType` | `readonly mimeType: string;` |  |  |
| `data` | `readonly data: Data;` |  |  |

### SchedulerExportWriters

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExportWriters

```ts
interface SchedulerExportWriters {
    readonly excel?: (() => Promise<{
        readonly exportXlsx: unknown;
    }>) | undefined;
    readonly ics?: (() => Promise<{
        readonly exportICalendar: unknown;
        readonly parseICalendar: unknown;
    }>) | undefined;
}
```

Writer loaders: dynamic imports of `@salmonui/export` subpaths,
so the writers load on first use (`@salmonui/scheduler` never imports them).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `excel` | `readonly excel?: (() => Promise<{     readonly exportXlsx: unknown; }>) \| undefined;` | optional | A loader of |
| `ics` | `readonly ics?: (() => Promise<{     readonly exportICalendar: unknown;     readonly parseICalendar: unknown; }>) \| undefined;` | optional | A loader of |

### SchedulerExternalDropEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExternalDropEvent

```ts
interface SchedulerExternalDropEvent extends SchedulerEvent {
    readonly data: DataTransfer | null;
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly resourceIds: Readonly<Record<string, readonly unknown[]>>;
    readonly element: Element;
}
```

`onExternalDrop`: HTML drag data dropped on a slot; return rows to add them (`onBeforeAdd` / `onAdd`).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: DataTransfer \| null;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `resourceIds` | `readonly resourceIds: Readonly<Record<string, readonly unknown[]>>;` |  | Resource ids of the slot (grouped views), else empty. |
| `element` | `readonly element: Element;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerGrouping

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerGrouping

```ts
interface SchedulerGrouping {
    readonly resources: readonly string[];
    readonly byDate?: boolean;
    readonly byParent?: boolean;
    readonly sharedEvents?: boolean;
    readonly hideNonWorkingDays?: boolean;
}
```

Resource grouping.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `resources` | `readonly resources: readonly string[];` |  | Resource `name`s, outermost first: one header row (vertical views) or tree level (timeline views) each. |
| `byDate` | `readonly byDate?: boolean;` | optional | Dates above resources in day, week and month views. |
| `byParent` | `readonly byParent?: boolean;` | optional | Default true: children only under the parent their `parentIdField` names; false puts every child under every parent. |
| `sharedEvents` | `readonly sharedEvents?: boolean;` | optional | An event with several ids is one event in each of its resources: selecting one copy selects every copy. |
| `hideNonWorkingDays` | `readonly hideNonWorkingDays?: boolean;` | optional | Each resource shows only its own work days (`workDaysField`) in day, week and work week views. |

### SchedulerHeaderCellContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerHeaderCellContext

```ts
interface SchedulerHeaderCellContext {
    readonly unit: SchedulerHeaderUnit;
    readonly start: Date;
    readonly date: PlainDate;
    readonly text: string;
    readonly view: SchedulerViewType;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `unit` | `readonly unit: SchedulerHeaderUnit;` |  |  |
| `start` | `readonly start: Date;` |  | First instant of the cell. |
| `date` | `readonly date: PlainDate;` |  |  |
| `text` | `readonly text: string;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |

### SchedulerHeaderRow

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerHeaderRow

```ts
interface SchedulerHeaderRow {
    readonly unit: SchedulerHeaderUnit;
    readonly render?: (ctx: SchedulerHeaderCellContext) => ReactNode;
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `unit` | `readonly unit: SchedulerHeaderUnit;` |  |  |
| `render` | `readonly render?: (ctx: SchedulerHeaderCellContext) => ReactNode;` | optional |  |

### SchedulerHoverEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerHoverEvent

```ts
interface SchedulerHoverEvent<Row> extends SchedulerEvent {
    readonly part: 'cell' | 'event' | 'header';
    readonly row: Row | null;
    readonly start: Date | null;
    readonly element: Element;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `part` | `readonly part: 'cell' \| 'event' \| 'header';` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `start` | `readonly start: Date \| null;` |  |  |
| `element` | `readonly element: Element;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerICalendarExportOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerICalendarExportOptions

```ts
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;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `fileName` | `readonly fileName?: string \| undefined;` | optional | `.ics` is added when missing. Default `Schedule.ics`. |
| `rows` | `readonly rows?: readonly Row[] \| undefined;` | optional | Rows to export instead of the Scheduler's events (`customData`). |
| `download` | `readonly download?: boolean \| undefined;` | optional |  |
| `utc` | `readonly utc?: boolean \| undefined;` | optional | Timed events as UTC instants instead of TZID wall times. Default false. |
| `uid` | `readonly uid?: ((row: Row) => string) \| undefined;` | optional | UID of an event row. Default `String(id)`. |
| `extra` | `readonly extra?: ((row: Row) => Readonly<Record<string, string>> \| undefined) \| undefined;` | optional | Further `X-...` properties of an event row. |
| `calendarName` | `readonly calendarName?: string \| undefined;` | optional |  |
| `prodId` | `readonly prodId?: string \| undefined;` | optional |  |

### SchedulerICalendarImportOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerICalendarImportOptions

```ts
interface SchedulerICalendarImportOptions<Row = unknown> {
    readonly map?: ((row: Record<string, unknown>, event: {
        readonly uid: string;
        readonly extra?: Readonly<Record<string, string>> | undefined;
    }) => Row) | undefined;
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `map` | `readonly map?: ((row: Record<string, unknown>, event: {     readonly uid: string;     readonly extra?: Readonly<Record<string, string>> \| undefined; }) => Row) \| undefined;` | optional | Final say over each imported row (copy `extra` properties, set resources). |

### SchedulerLocaleText

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerLocaleText

```ts
interface SchedulerLocaleText {
    readonly label: LocaleMessage;
    readonly previous: LocaleMessage;
    readonly next: LocaleMessage;
    readonly today: LocaleMessage;
    readonly newEvent: LocaleMessage;
    readonly views: LocaleMessage;
    readonly resource: LocaleMessage;
    readonly chooseDate: LocaleMessage;
    readonly viewDay: LocaleMessage;
    readonly viewWeek: LocaleMessage;
    readonly viewWorkWeek: LocaleMessage;
    readonly viewMonth: LocaleMessage;
    readonly viewYear: LocaleMessage;
    readonly viewAgenda: LocaleMessage;
    readonly viewMonthAgenda: LocaleMessage;
    readonly viewTimelineDay: LocaleMessage;
    readonly viewTimelineWeek: LocaleMessage;
    readonly viewTimelineWorkWeek: LocaleMessage;
    readonly viewTimelineMonth: LocaleMessage;
    readonly viewTimelineYear: LocaleMessage;
    readonly allDay: LocaleMessage;
    readonly expandAllDay: LocaleMessage;
    readonly collapseAllDay: LocaleMessage;
    readonly more: LocaleMessage;
    readonly moreEventsTitle: LocaleMessage;
    readonly noTitle: LocaleMessage;
    readonly eventLabel: LocaleMessage;
    readonly cellLabel: LocaleMessage;
    readonly weekNumber: LocaleMessage;
    readonly loading: LocaleMessage;
    readonly addTitle: LocaleMessage;
    readonly save: LocaleMessage;
    readonly cancel: LocaleMessage;
    readonly delete: LocaleMessage;
    readonly edit: LocaleMessage;
    readonly close: LocaleMessage;
    readonly moreDetails: LocaleMessage;
    readonly newEventTitle: LocaleMessage;
    readonly editEventTitle: LocaleMessage;
    readonly fieldTitle: LocaleMessage;
    readonly fieldLocation: LocaleMessage;
    readonly fieldStart: LocaleMessage;
    readonly fieldEnd: LocaleMessage;
    readonly fieldAllDay: LocaleMessage;
    readonly fieldTimeZone: LocaleMessage;
    readonly fieldStartTimeZone: LocaleMessage;
    readonly fieldEndTimeZone: LocaleMessage;
    readonly fieldRepeat: LocaleMessage;
    readonly fieldDescription: LocaleMessage;
    readonly recurrenceEditTitle: LocaleMessage;
    readonly recurrenceDeleteTitle: LocaleMessage;
    readonly recurrenceEditMessage: LocaleMessage;
    readonly recurrenceDeleteMessage: LocaleMessage;
    readonly scopeOccurrence: LocaleMessage;
    readonly scopeFollowing: LocaleMessage;
    readonly scopeSeries: LocaleMessage;
    readonly deleteTitle: LocaleMessage;
    readonly deleteMessage: LocaleMessage;
    readonly overlapTitle: LocaleMessage;
    readonly overlapMessage: LocaleMessage;
    readonly blockedMessage: LocaleMessage;
    readonly validationTitle: LocaleMessage;
    readonly durationTooLong: LocaleMessage;
    readonly sameDay: LocaleMessage;
    readonly occurrenceOverlap: LocaleMessage;
    readonly invalidRule: LocaleMessage;
    readonly endBeforeStart: LocaleMessage;
    readonly required: LocaleMessage;
    readonly minLength: LocaleMessage;
    readonly maxLength: LocaleMessage;
    readonly pattern: LocaleMessage;
    readonly ok: LocaleMessage;
    readonly currentTime: LocaleMessage;
    readonly noEvents: LocaleMessage;
    readonly newRecurringEvent: LocaleMessage;
}
```

Members (75):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `label` | `readonly label: LocaleMessage;` |  |  |
| `previous` | `readonly previous: LocaleMessage;` |  |  |
| `next` | `readonly next: LocaleMessage;` |  |  |
| `today` | `readonly today: LocaleMessage;` |  |  |
| `newEvent` | `readonly newEvent: LocaleMessage;` |  |  |
| `views` | `readonly views: LocaleMessage;` |  |  |
| `resource` | `readonly resource: LocaleMessage;` |  | Resource picker of the adaptive layout. |
| `chooseDate` | `readonly chooseDate: LocaleMessage;` |  |  |
| `viewDay` | `readonly viewDay: LocaleMessage;` |  |  |
| `viewWeek` | `readonly viewWeek: LocaleMessage;` |  |  |
| `viewWorkWeek` | `readonly viewWorkWeek: LocaleMessage;` |  |  |
| `viewMonth` | `readonly viewMonth: LocaleMessage;` |  |  |
| `viewYear` | `readonly viewYear: LocaleMessage;` |  |  |
| `viewAgenda` | `readonly viewAgenda: LocaleMessage;` |  |  |
| `viewMonthAgenda` | `readonly viewMonthAgenda: LocaleMessage;` |  |  |
| `viewTimelineDay` | `readonly viewTimelineDay: LocaleMessage;` |  |  |
| `viewTimelineWeek` | `readonly viewTimelineWeek: LocaleMessage;` |  |  |
| `viewTimelineWorkWeek` | `readonly viewTimelineWorkWeek: LocaleMessage;` |  |  |
| `viewTimelineMonth` | `readonly viewTimelineMonth: LocaleMessage;` |  |  |
| `viewTimelineYear` | `readonly viewTimelineYear: LocaleMessage;` |  |  |
| `allDay` | `readonly allDay: LocaleMessage;` |  |  |
| `expandAllDay` | `readonly expandAllDay: LocaleMessage;` |  |  |
| `collapseAllDay` | `readonly collapseAllDay: LocaleMessage;` |  |  |
| `more` | `readonly more: LocaleMessage;` |  |  |
| `moreEventsTitle` | `readonly moreEventsTitle: LocaleMessage;` |  |  |
| `noTitle` | `readonly noTitle: LocaleMessage;` |  |  |
| `eventLabel` | `readonly eventLabel: LocaleMessage;` |  |  |
| `cellLabel` | `readonly cellLabel: LocaleMessage;` |  |  |
| `weekNumber` | `readonly weekNumber: LocaleMessage;` |  |  |
| `loading` | `readonly loading: LocaleMessage;` |  |  |
| `addTitle` | `readonly addTitle: LocaleMessage;` |  |  |
| `save` | `readonly save: LocaleMessage;` |  |  |
| `cancel` | `readonly cancel: LocaleMessage;` |  |  |
| `delete` | `readonly delete: LocaleMessage;` |  |  |
| `edit` | `readonly edit: LocaleMessage;` |  |  |
| `close` | `readonly close: LocaleMessage;` |  |  |
| `moreDetails` | `readonly moreDetails: LocaleMessage;` |  |  |
| `newEventTitle` | `readonly newEventTitle: LocaleMessage;` |  |  |
| `editEventTitle` | `readonly editEventTitle: LocaleMessage;` |  |  |
| `fieldTitle` | `readonly fieldTitle: LocaleMessage;` |  |  |
| `fieldLocation` | `readonly fieldLocation: LocaleMessage;` |  |  |
| `fieldStart` | `readonly fieldStart: LocaleMessage;` |  |  |
| `fieldEnd` | `readonly fieldEnd: LocaleMessage;` |  |  |
| `fieldAllDay` | `readonly fieldAllDay: LocaleMessage;` |  |  |
| `fieldTimeZone` | `readonly fieldTimeZone: LocaleMessage;` |  |  |
| `fieldStartTimeZone` | `readonly fieldStartTimeZone: LocaleMessage;` |  |  |
| `fieldEndTimeZone` | `readonly fieldEndTimeZone: LocaleMessage;` |  |  |
| `fieldRepeat` | `readonly fieldRepeat: LocaleMessage;` |  |  |
| `fieldDescription` | `readonly fieldDescription: LocaleMessage;` |  |  |
| `recurrenceEditTitle` | `readonly recurrenceEditTitle: LocaleMessage;` |  |  |
| `recurrenceDeleteTitle` | `readonly recurrenceDeleteTitle: LocaleMessage;` |  |  |
| `recurrenceEditMessage` | `readonly recurrenceEditMessage: LocaleMessage;` |  |  |
| `recurrenceDeleteMessage` | `readonly recurrenceDeleteMessage: LocaleMessage;` |  |  |
| `scopeOccurrence` | `readonly scopeOccurrence: LocaleMessage;` |  |  |
| `scopeFollowing` | `readonly scopeFollowing: LocaleMessage;` |  |  |
| `scopeSeries` | `readonly scopeSeries: LocaleMessage;` |  |  |
| `deleteTitle` | `readonly deleteTitle: LocaleMessage;` |  |  |
| `deleteMessage` | `readonly deleteMessage: LocaleMessage;` |  |  |
| `overlapTitle` | `readonly overlapTitle: LocaleMessage;` |  |  |
| `overlapMessage` | `readonly overlapMessage: LocaleMessage;` |  |  |
| `blockedMessage` | `readonly blockedMessage: LocaleMessage;` |  |  |
| `validationTitle` | `readonly validationTitle: LocaleMessage;` |  |  |
| `durationTooLong` | `readonly durationTooLong: LocaleMessage;` |  |  |
| `sameDay` | `readonly sameDay: LocaleMessage;` |  |  |
| `occurrenceOverlap` | `readonly occurrenceOverlap: LocaleMessage;` |  |  |
| `invalidRule` | `readonly invalidRule: LocaleMessage;` |  |  |
| `endBeforeStart` | `readonly endBeforeStart: LocaleMessage;` |  |  |
| `required` | `readonly required: LocaleMessage;` |  |  |
| `minLength` | `readonly minLength: LocaleMessage;` |  |  |
| `maxLength` | `readonly maxLength: LocaleMessage;` |  |  |
| `pattern` | `readonly pattern: LocaleMessage;` |  |  |
| `ok` | `readonly ok: LocaleMessage;` |  |  |
| `currentTime` | `readonly currentTime: LocaleMessage;` |  |  |
| `noEvents` | `readonly noEvents: LocaleMessage;` |  |  |
| `newRecurringEvent` | `readonly newRecurringEvent: LocaleMessage;` |  | Default cell context menu item. |

### SchedulerMonthHeaderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerMonthHeaderContext

```ts
interface SchedulerMonthHeaderContext {
    readonly date: PlainDate;
    readonly text: string;
    readonly view: SchedulerViewType;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `date` | `readonly date: PlainDate;` |  | First day of the month. |
| `text` | `readonly text: string;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |

### SchedulerMoreEventsClickEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerMoreEventsClickEvent

```ts
interface SchedulerMoreEventsClickEvent<Row> extends SchedulerCancelableEvent {
    readonly date: PlainDate;
    readonly rows: readonly Row[];
    navigate(view: string): void;
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `date` | `readonly date: PlainDate;` |  |  |
| `rows` | `readonly rows: readonly Row[];` |  |  |
| `navigate` | `navigate(view: string): void;` |  | Navigates to `view` on that date instead of opening the popover. |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerOverlapEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerOverlapEvent

```ts
interface SchedulerOverlapEvent<Row> extends SchedulerCancelableEvent {
    readonly row: Row;
    readonly conflicts: readonly Row[];
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `row` | `readonly row: Row;` |  |  |
| `conflicts` | `readonly conflicts: readonly Row[];` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |
| `defaultPrevented` | `defaultPrevented: boolean;` | inherited |  |
| `preventDefault` | `preventDefault: () => void;` | inherited |  |

### SchedulerPasteTarget

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerPasteTarget

```ts
interface SchedulerPasteTarget {
    readonly start: Date;
    readonly allDay?: boolean | undefined;
    readonly resources?: Readonly<Record<string, readonly unknown[]>> | undefined;
}
```

Where `paste` puts the clipboard (default: the selected cells, else the focused cell).

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: Date;` |  |  |
| `allDay` | `readonly allDay?: boolean \| undefined;` | optional | Shift by whole days and keep each event's time of day (month cells and the all-day row). |
| `resources` | `readonly resources?: Readonly<Record<string, readonly unknown[]>> \| undefined;` | optional | Resource ids by resource field; pasted (and cut) events move to them. |

### SchedulerPopupCloseEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerPopupCloseEvent

```ts
interface SchedulerPopupCloseEvent<Row> extends SchedulerEvent {
    readonly popup: SchedulerPopup;
    readonly row: Row | null;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `popup` | `readonly popup: SchedulerPopup;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerPrintOptions

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerPrintOptions

```ts
interface SchedulerPrintOptions {
    readonly height?: number | string | undefined;
    readonly width?: number | string | undefined;
}
```

`print()` options: the printed Scheduler's size, as CSS lengths (numbers are px).

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `height` | `readonly height?: number \| string \| undefined;` | optional |  |
| `width` | `readonly width?: number \| string \| undefined;` | optional |  |

### SchedulerProps

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerProps

```ts
interface SchedulerProps<Row = Record<string, unknown>> {
    readonly data: readonly Row[] | SchedulerDataSource<Row>;
    readonly eventFields?: SchedulerEventFields | undefined;
    readonly resources?: readonly SchedulerResource<object>[] | undefined;
    readonly grouping?: SchedulerGrouping | undefined;
    readonly expandedResourceIds?: readonly unknown[] | undefined;
    readonly onExpandedResourcesChange?: ((ids: readonly unknown[]) => void) | undefined;
    readonly renderResourceHeader?: ((ctx: SchedulerResourceHeaderContext) => ReactNode) | undefined;
    readonly renderResourceTooltip?: ((ctx: SchedulerResourceHeaderContext) => ReactNode) | undefined;
    readonly virtualScroll?: boolean | SchedulerVirtualScroll | undefined;
    readonly headerRows?: readonly SchedulerHeaderRow[] | undefined;
    readonly firstMonthOfYear?: number | undefined;
    readonly monthCount?: number | undefined;
    readonly agendaDayCount?: number | undefined;
    readonly hideEmptyAgendaDays?: boolean | undefined;
    readonly renderMonthHeader?: ((ctx: SchedulerMonthHeaderContext) => ReactNode) | undefined;
    readonly renderDayHeader?: ((ctx: SchedulerDayHeaderContext) => ReactNode) | undefined;
    readonly view?: string | undefined;
    readonly onViewChange?: ((view: string, event: SchedulerViewChangeEvent) => void) | undefined;
    readonly views?: readonly SchedulerViewEntry<Row>[] | undefined;
    readonly date?: DateInput | undefined;
    readonly onDateChange?: ((date: PlainDate, event: SchedulerDateChangeEvent) => void) | undefined;
    readonly onBeforeNavigate?: ((event: SchedulerBeforeNavigateEvent) => void) | undefined;
    readonly timeZone?: string | undefined;
    readonly timeZones?: readonly string[] | undefined;
    readonly locale?: string | undefined;
    readonly localeText?: Partial<SchedulerLocaleText> | undefined;
    readonly calendar?: string | undefined;
    readonly dateFormat?: Intl.DateTimeFormatOptions | undefined;
    readonly hourCycle?: 'h12' | 'h23' | undefined;
    readonly firstDayOfWeek?: number | undefined;
    readonly showWeekNumbers?: boolean | undefined;
    readonly weekRule?: WeekRule | undefined;
    readonly workDays?: readonly number[] | undefined;
    readonly showWeekend?: boolean | undefined;
    readonly startHour?: string | undefined;
    readonly endHour?: string | undefined;
    readonly workHours?: SchedulerWorkHours | undefined;
    readonly timeScale?: SchedulerTimeScale | undefined;
    readonly renderMajorSlot?: ((ctx: SchedulerSlotRenderContext) => ReactNode) | undefined;
    readonly renderMinorSlot?: ((ctx: SchedulerSlotRenderContext) => ReactNode) | undefined;
    readonly min?: DateInput | undefined;
    readonly max?: DateInput | undefined;
    readonly scrollTime?: string | undefined;
    readonly readOnly?: boolean | undefined;
    readonly editing?: boolean | SchedulerEditing<Row> | undefined;
    readonly overlap?: boolean | undefined;
    readonly quickInfo?: boolean | SchedulerQuickInfo<Row> | undefined;
    readonly cellSelection?: 'single' | 'multiple' | undefined;
    readonly cellSelectionRows?: boolean | undefined;
    readonly onCellSelectionChange?: ((selection: SchedulerCellSelectionChangeEvent) => void) | undefined;
    readonly eventLayout?: SchedulerEventLayout | undefined;
    readonly eventOrder?: ((a: Row, b: Row) => number) | undefined;
    readonly autoRowHeight?: boolean | undefined;
    readonly allDayRowExpanded?: boolean | undefined;
    readonly onAllDayRowExpandedChange?: ((expanded: boolean) => void) | undefined;
    readonly allDayRowScroll?: boolean | undefined;
    readonly currentTimeIndicator?: boolean | {
        readonly label?: boolean;
    } | undefined;
    readonly toolbar?: readonly SchedulerToolbarItem[] | false | undefined;
    readonly renderToolbar?: ((ctx: {
        readonly items: ReactNode;
        readonly dateRangeText: string;
    }) => ReactNode) | undefined;
    readonly renderEvent?: ((ctx: SchedulerEventRenderContext<Row>) => ReactNode) | undefined;
    readonly getEventProps?: ((ctx: SchedulerEventPropsContext<Row>) => SchedulerEventProps | undefined) | undefined;
    readonly getCellProps?: ((ctx: SchedulerCellContext) => SchedulerCellProps | undefined) | undefined;
    readonly renderCell?: ((ctx: SchedulerCellContext) => ReactNode) | undefined;
    readonly renderCellHeader?: ((ctx: SchedulerCellContext) => ReactNode) | undefined;
    readonly renderDateHeader?: ((ctx: SchedulerCellContext) => ReactNode) | undefined;
    readonly renderHeaderIndent?: (() => ReactNode) | undefined;
    readonly renderDateRange?: ((ctx: SchedulerDateRangeContext) => ReactNode) | undefined;
    readonly renderLoading?: (() => ReactNode) | undefined;
    readonly onCellClick?: ((event: SchedulerCellClickEvent) => void) | undefined;
    readonly onCellDoubleClick?: ((event: SchedulerCellClickEvent) => void) | undefined;
    readonly onEventClick?: ((event: SchedulerEventClickEvent<Row>) => void) | undefined;
    readonly onEventDoubleClick?: ((event: SchedulerEventClickEvent<Row>) => void) | undefined;
    readonly onHover?: ((event: SchedulerHoverEvent<Row>) => void) | undefined;
    readonly selectedEventIds?: readonly EventId[] | undefined;
    readonly onEventSelectionChange?: ((ids: readonly EventId[], event: SchedulerEventSelectionChangeEvent<Row>) => void) | undefined;
    readonly onBeforeAdd?: ((event: SchedulerBeforeAddEvent<Row>) => void) | undefined;
    readonly onAdd?: ((event: SchedulerAddEvent<Row>) => void) | undefined;
    readonly onBeforeSave?: ((event: SchedulerBeforeSaveEvent<Row>) => void) | undefined;
    readonly onSave?: ((event: SchedulerSaveEvent<Row>) => void) | undefined;
    readonly onBeforeDelete?: ((event: SchedulerBeforeDeleteEvent<Row>) => void) | undefined;
    readonly onDelete?: ((event: SchedulerDeleteEvent<Row>) => void) | undefined;
    readonly onBeforePopupOpen?: ((event: SchedulerBeforePopupOpenEvent<Row>) => void) | undefined;
    readonly onPopupClose?: ((event: SchedulerPopupCloseEvent<Row>) => void) | undefined;
    readonly onMoreEventsClick?: ((event: SchedulerMoreEventsClickEvent<Row>) => void) | undefined;
    readonly onOverlap?: ((event: SchedulerOverlapEvent<Row>) => void) | undefined;
    readonly onDataLoad?: ((event: SchedulerDataLoadEvent<Row>) => void) | undefined;
    readonly onError?: ((event: SchedulerErrorEvent) => void) | undefined;
    readonly onReady?: ((api: SchedulerApi<Row>) => void) | undefined;
    readonly draggable?: boolean | undefined;
    readonly resizable?: boolean | undefined;
    readonly dragOptions?: SchedulerDragOptions | undefined;
    readonly onEventDragStart?: ((event: SchedulerDragStartEvent<Row>) => void) | undefined;
    readonly onEventDrag?: ((event: SchedulerDragEvent<Row>) => void) | undefined;
    readonly onBeforeEventDrop?: ((event: SchedulerBeforeDropEvent<Row>) => void) | undefined;
    readonly onEventDrop?: ((event: SchedulerDropEvent<Row>) => void) | undefined;
    readonly onEventResizeStart?: ((event: SchedulerDragStartEvent<Row>) => void) | undefined;
    readonly onEventResize?: ((event: SchedulerDragEvent<Row>) => void) | undefined;
    readonly onBeforeEventResizeEnd?: ((event: SchedulerBeforeDropEvent<Row>) => void) | undefined;
    readonly onEventResizeEnd?: ((event: SchedulerDropEvent<Row>) => void) | undefined;
    readonly onExternalDrop?: ((event: SchedulerExternalDropEvent) => readonly Row[] | null | undefined | void) | undefined;
    readonly onEventDragOut?: ((event: SchedulerDragOutEvent<Row>) => void) | undefined;
    readonly swipeNavigation?: boolean | undefined;
    readonly exportWriters?: SchedulerExportWriters | undefined;
    readonly onBeforeExport?: ((event: SchedulerBeforeExportEvent<Row>) => void) | undefined;
    readonly onExport?: ((event: SchedulerExportEvent<Row>) => void) | undefined;
    readonly adaptive?: boolean | SchedulerAdaptive | undefined;
    readonly selectedResourceId?: unknown;
    readonly onSelectedResourceChange?: ((id: unknown, event: SchedulerEvent) => void) | undefined;
    readonly clipboard?: boolean | undefined;
    readonly onBeforePaste?: ((event: SchedulerBeforePasteEvent<Row>) => void) | undefined;
    readonly keyBindings?: Readonly<Partial<Record<SchedulerKeyCommand, readonly string[]>>> | undefined;
    readonly contextMenu?: boolean | readonly SchedulerMenuItem[] | ((ctx: SchedulerContextMenuContext<Row>) => readonly SchedulerMenuItem[] | null | undefined) | undefined;
    readonly onContextMenuItemClick?: ((event: SchedulerContextMenuItemClickEvent<Row>) => void) | undefined;
    readonly tooltip?: boolean | SchedulerTooltip<Row> | undefined;
    readonly onBeforeTooltipOpen?: ((event: SchedulerBeforeTooltipOpenEvent<Row>) => void) | undefined;
    readonly onBeforePrint?: ((event: SchedulerBeforePrintEvent) => void) | undefined;
    readonly onAfterPrint?: ((event: SchedulerAfterPrintEvent) => void) | undefined;
    readonly height?: number | string | undefined;
    readonly width?: number | string | undefined;
    readonly dir?: 'ltr' | 'rtl' | undefined;
    readonly className?: string | undefined;
    readonly style?: CSSProperties | undefined;
    readonly id?: string | undefined;
    readonly 'aria-label'?: string | undefined;
    readonly ref?: Ref<SchedulerApi<Row>> | undefined;
}
```

Members (125):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `data` | `readonly data: readonly Row[] \| SchedulerDataSource<Row>;` |  | Events: an array (local) or a `SchedulerDataSource` (remote, read per visible range). |
| `eventFields` | `readonly eventFields?: SchedulerEventFields \| undefined;` | optional |  |
| `resources` | `readonly resources?: readonly SchedulerResource<object>[] \| undefined;` | optional | Resource definitions; reactive: add, remove and replace items by changing the prop. |
| `grouping` | `readonly grouping?: SchedulerGrouping \| undefined;` | optional | Group the views by resources. |
| `expandedResourceIds` | `readonly expandedResourceIds?: readonly unknown[] \| undefined;` | optional | Expanded parent resource ids of timeline views (default from `expandedField`, else expanded). |
| `onExpandedResourcesChange` | `readonly onExpandedResourcesChange?: ((ids: readonly unknown[]) => void) \| undefined;` | optional |  |
| `renderResourceHeader` | `readonly renderResourceHeader?: ((ctx: SchedulerResourceHeaderContext) => ReactNode) \| undefined;` | optional |  |
| `renderResourceTooltip` | `readonly renderResourceTooltip?: ((ctx: SchedulerResourceHeaderContext) => ReactNode) \| undefined;` | optional | A tooltip for resource headers. |
| `virtualScroll` | `readonly virtualScroll?: boolean \| SchedulerVirtualScroll \| undefined;` | optional |  |
| `headerRows` | `readonly headerRows?: readonly SchedulerHeaderRow[] \| undefined;` | optional |  |
| `firstMonthOfYear` | `readonly firstMonthOfYear?: number \| undefined;` | optional |  |
| `monthCount` | `readonly monthCount?: number \| undefined;` | optional |  |
| `agendaDayCount` | `readonly agendaDayCount?: number \| undefined;` | optional |  |
| `hideEmptyAgendaDays` | `readonly hideEmptyAgendaDays?: boolean \| undefined;` | optional |  |
| `renderMonthHeader` | `readonly renderMonthHeader?: ((ctx: SchedulerMonthHeaderContext) => ReactNode) \| undefined;` | optional |  |
| `renderDayHeader` | `readonly renderDayHeader?: ((ctx: SchedulerDayHeaderContext) => ReactNode) \| undefined;` | optional |  |
| `view` | `readonly view?: string \| undefined;` | optional |  |
| `onViewChange` | `readonly onViewChange?: ((view: string, event: SchedulerViewChangeEvent) => void) \| undefined;` | optional |  |
| `views` | `readonly views?: readonly SchedulerViewEntry<Row>[] \| undefined;` | optional | Views offered by the header (default day, week, work week, month). |
| `date` | `readonly date?: DateInput \| undefined;` | optional | The anchor date. Server rendering needs it, with `view` and `timeZone`. |
| `onDateChange` | `readonly onDateChange?: ((date: PlainDate, event: SchedulerDateChangeEvent) => void) \| undefined;` | optional |  |
| `onBeforeNavigate` | `readonly onBeforeNavigate?: ((event: SchedulerBeforeNavigateEvent) => void) \| undefined;` | optional |  |
| `timeZone` | `readonly timeZone?: string \| undefined;` | optional | IANA zone the events are shown in; the host zone after hydration when omitted. |
| `timeZones` | `readonly timeZones?: readonly string[] \| undefined;` | optional | Zones offered by the editor (default `Intl.supportedValuesOf('timeZone')`). |
| `locale` | `readonly locale?: string \| undefined;` | optional |  |
| `localeText` | `readonly localeText?: Partial<SchedulerLocaleText> \| undefined;` | optional |  |
| `calendar` | `readonly calendar?: string \| undefined;` | optional |  |
| `dateFormat` | `readonly dateFormat?: Intl.DateTimeFormatOptions \| undefined;` | optional |  |
| `hourCycle` | `readonly hourCycle?: 'h12' \| 'h23' \| undefined;` | optional |  |
| `firstDayOfWeek` | `readonly firstDayOfWeek?: number \| undefined;` | optional |  |
| `showWeekNumbers` | `readonly showWeekNumbers?: boolean \| undefined;` | optional |  |
| `weekRule` | `readonly weekRule?: WeekRule \| undefined;` | optional |  |
| `workDays` | `readonly workDays?: readonly number[] \| undefined;` | optional |  |
| `showWeekend` | `readonly showWeekend?: boolean \| undefined;` | optional |  |
| `startHour` | `readonly startHour?: string \| undefined;` | optional |  |
| `endHour` | `readonly endHour?: string \| undefined;` | optional |  |
| `workHours` | `readonly workHours?: SchedulerWorkHours \| undefined;` | optional |  |
| `timeScale` | `readonly timeScale?: SchedulerTimeScale \| undefined;` | optional |  |
| `renderMajorSlot` | `readonly renderMajorSlot?: ((ctx: SchedulerSlotRenderContext) => ReactNode) \| undefined;` | optional |  |
| `renderMinorSlot` | `readonly renderMinorSlot?: ((ctx: SchedulerSlotRenderContext) => ReactNode) \| undefined;` | optional |  |
| `min` | `readonly min?: DateInput \| undefined;` | optional |  |
| `max` | `readonly max?: DateInput \| undefined;` | optional |  |
| `scrollTime` | `readonly scrollTime?: string \| undefined;` | optional |  |
| `readOnly` | `readonly readOnly?: boolean \| undefined;` | optional |  |
| `editing` | `readonly editing?: boolean \| SchedulerEditing<Row> \| undefined;` | optional |  |
| `overlap` | `readonly overlap?: boolean \| undefined;` | optional | False rejects creates, saves and moves that collide with another event. |
| `quickInfo` | `readonly quickInfo?: boolean \| SchedulerQuickInfo<Row> \| undefined;` | optional |  |
| `cellSelection` | `readonly cellSelection?: 'single' \| 'multiple' \| undefined;` | optional |  |
| `cellSelectionRows` | `readonly cellSelectionRows?: boolean \| undefined;` | optional | Default true; false keeps a drag selection in one day column (day views) or one row. |
| `onCellSelectionChange` | `readonly onCellSelectionChange?: ((selection: SchedulerCellSelectionChangeEvent) => void) \| undefined;` | optional |  |
| `eventLayout` | `readonly eventLayout?: SchedulerEventLayout \| undefined;` | optional |  |
| `eventOrder` | `readonly eventOrder?: ((a: Row, b: Row) => number) \| undefined;` | optional |  |
| `autoRowHeight` | `readonly autoRowHeight?: boolean \| undefined;` | optional |  |
| `allDayRowExpanded` | `readonly allDayRowExpanded?: boolean \| undefined;` | optional |  |
| `onAllDayRowExpandedChange` | `readonly onAllDayRowExpandedChange?: ((expanded: boolean) => void) \| undefined;` | optional |  |
| `allDayRowScroll` | `readonly allDayRowScroll?: boolean \| undefined;` | optional |  |
| `currentTimeIndicator` | `readonly currentTimeIndicator?: boolean \| {     readonly label?: boolean; } \| undefined;` | optional |  |
| `toolbar` | `readonly toolbar?: readonly SchedulerToolbarItem[] \| false \| undefined;` | optional |  |
| `renderToolbar` | `readonly renderToolbar?: ((ctx: {     readonly items: ReactNode;     readonly dateRangeText: string; }) => ReactNode) \| undefined;` | optional |  |
| `renderEvent` | `readonly renderEvent?: ((ctx: SchedulerEventRenderContext<Row>) => ReactNode) \| undefined;` | optional |  |
| `getEventProps` | `readonly getEventProps?: ((ctx: SchedulerEventPropsContext<Row>) => SchedulerEventProps \| undefined) \| undefined;` | optional |  |
| `getCellProps` | `readonly getCellProps?: ((ctx: SchedulerCellContext) => SchedulerCellProps \| undefined) \| undefined;` | optional |  |
| `renderCell` | `readonly renderCell?: ((ctx: SchedulerCellContext) => ReactNode) \| undefined;` | optional |  |
| `renderCellHeader` | `readonly renderCellHeader?: ((ctx: SchedulerCellContext) => ReactNode) \| undefined;` | optional |  |
| `renderDateHeader` | `readonly renderDateHeader?: ((ctx: SchedulerCellContext) => ReactNode) \| undefined;` | optional |  |
| `renderHeaderIndent` | `readonly renderHeaderIndent?: (() => ReactNode) \| undefined;` | optional |  |
| `renderDateRange` | `readonly renderDateRange?: ((ctx: SchedulerDateRangeContext) => ReactNode) \| undefined;` | optional |  |
| `renderLoading` | `readonly renderLoading?: (() => ReactNode) \| undefined;` | optional |  |
| `onCellClick` | `readonly onCellClick?: ((event: SchedulerCellClickEvent) => void) \| undefined;` | optional |  |
| `onCellDoubleClick` | `readonly onCellDoubleClick?: ((event: SchedulerCellClickEvent) => void) \| undefined;` | optional |  |
| `onEventClick` | `readonly onEventClick?: ((event: SchedulerEventClickEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventDoubleClick` | `readonly onEventDoubleClick?: ((event: SchedulerEventClickEvent<Row>) => void) \| undefined;` | optional |  |
| `onHover` | `readonly onHover?: ((event: SchedulerHoverEvent<Row>) => void) \| undefined;` | optional |  |
| `selectedEventIds` | `readonly selectedEventIds?: readonly EventId[] \| undefined;` | optional | Selected event ids; reactive: a change selects every visible occurrence of these events. |
| `onEventSelectionChange` | `readonly onEventSelectionChange?: ((ids: readonly EventId[], event: SchedulerEventSelectionChangeEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforeAdd` | `readonly onBeforeAdd?: ((event: SchedulerBeforeAddEvent<Row>) => void) \| undefined;` | optional |  |
| `onAdd` | `readonly onAdd?: ((event: SchedulerAddEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforeSave` | `readonly onBeforeSave?: ((event: SchedulerBeforeSaveEvent<Row>) => void) \| undefined;` | optional |  |
| `onSave` | `readonly onSave?: ((event: SchedulerSaveEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforeDelete` | `readonly onBeforeDelete?: ((event: SchedulerBeforeDeleteEvent<Row>) => void) \| undefined;` | optional |  |
| `onDelete` | `readonly onDelete?: ((event: SchedulerDeleteEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforePopupOpen` | `readonly onBeforePopupOpen?: ((event: SchedulerBeforePopupOpenEvent<Row>) => void) \| undefined;` | optional |  |
| `onPopupClose` | `readonly onPopupClose?: ((event: SchedulerPopupCloseEvent<Row>) => void) \| undefined;` | optional |  |
| `onMoreEventsClick` | `readonly onMoreEventsClick?: ((event: SchedulerMoreEventsClickEvent<Row>) => void) \| undefined;` | optional |  |
| `onOverlap` | `readonly onOverlap?: ((event: SchedulerOverlapEvent<Row>) => void) \| undefined;` | optional |  |
| `onDataLoad` | `readonly onDataLoad?: ((event: SchedulerDataLoadEvent<Row>) => void) \| undefined;` | optional |  |
| `onError` | `readonly onError?: ((event: SchedulerErrorEvent) => void) \| undefined;` | optional |  |
| `onReady` | `readonly onReady?: ((api: SchedulerApi<Row>) => void) \| undefined;` | optional |  |
| `draggable` | `readonly draggable?: boolean \| undefined;` | optional | Events move by pointer (default true when editable). |
| `resizable` | `readonly resizable?: boolean \| undefined;` | optional | Events resize from their start and end edges (default true when editable). |
| `dragOptions` | `readonly dragOptions?: SchedulerDragOptions \| undefined;` | optional |  |
| `onEventDragStart` | `readonly onEventDragStart?: ((event: SchedulerDragStartEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventDrag` | `readonly onEventDrag?: ((event: SchedulerDragEvent<Row>) => void) \| undefined;` | optional | At most once per frame, when the proposed time or resource changes. |
| `onBeforeEventDrop` | `readonly onBeforeEventDrop?: ((event: SchedulerBeforeDropEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventDrop` | `readonly onEventDrop?: ((event: SchedulerDropEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventResizeStart` | `readonly onEventResizeStart?: ((event: SchedulerDragStartEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventResize` | `readonly onEventResize?: ((event: SchedulerDragEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforeEventResizeEnd` | `readonly onBeforeEventResizeEnd?: ((event: SchedulerBeforeDropEvent<Row>) => void) \| undefined;` | optional |  |
| `onEventResizeEnd` | `readonly onEventResizeEnd?: ((event: SchedulerDropEvent<Row>) => void) \| undefined;` | optional |  |
| `onExternalDrop` | `readonly onExternalDrop?: ((event: SchedulerExternalDropEvent) => readonly Row[] \| null \| undefined \| void) \| undefined;` | optional | HTML drag data dropped on a slot; returned rows are added. |
| `onEventDragOut` | `readonly onEventDragOut?: ((event: SchedulerDragOutEvent<Row>) => void) \| undefined;` | optional |  |
| `swipeNavigation` | `readonly swipeNavigation?: boolean \| undefined;` | optional | A horizontal touch swipe navigates previous / next, mirrored in RTL (default true on coarse pointers). |
| `exportWriters` | `readonly exportWriters?: SchedulerExportWriters \| undefined;` | optional | Writer loaders of `exportToExcel`, `exportToICalendar` and `importICalendar`. |
| `onBeforeExport` | `readonly onBeforeExport?: ((event: SchedulerBeforeExportEvent<Row>) => void) \| undefined;` | optional |  |
| `onExport` | `readonly onExport?: ((event: SchedulerExportEvent<Row>) => void) \| undefined;` | optional |  |
| `adaptive` | `readonly adaptive?: boolean \| SchedulerAdaptive \| undefined;` | optional | Compact header with a view menu and one resource at a time: `true` always (server markup too), `{ breakpoint }` below a container width. |
| `selectedResourceId` | `readonly selectedResourceId?: unknown;` | optional | Item id of the resource the adaptive layout shows (default the first leaf); reactive. |
| `onSelectedResourceChange` | `readonly onSelectedResourceChange?: ((id: unknown, event: SchedulerEvent) => void) \| undefined;` | optional |  |
| `clipboard` | `readonly clipboard?: boolean \| undefined;` | optional | Ctrl / Cmd + C, X and V on the selected events and cells; `api.copy` / `cut` / `paste` work without it. |
| `onBeforePaste` | `readonly onBeforePaste?: ((event: SchedulerBeforePasteEvent<Row>) => void) \| undefined;` | optional |  |
| `keyBindings` | `readonly keyBindings?: Readonly<Partial<Record<SchedulerKeyCommand, readonly string[]>>> \| undefined;` | optional | Replaces the key combos of commands (`{ 'navigation.next': ['Alt+PageDown'] }`; `Mod` is Ctrl, Cmd on macOS); an empty list turns a command off. |
| `contextMenu` | `readonly contextMenu?: boolean \| readonly SchedulerMenuItem[] \| ((ctx: SchedulerContextMenuContext<Row>) => readonly SchedulerMenuItem[] \| null \| undefined) \| undefined;` | optional | Context menu on cells and events (right-click, touch long-press, Shift+F10 and the ContextMenu key): `true` shows the default items, an array the same items everywhere, a function the items of each target (an empty array or null leaves the browser menu). A lazy chunk on the public `ContextMenu`; import `@salmonui/buttons/menu/styles.css` too. |
| `onContextMenuItemClick` | `readonly onContextMenuItemClick?: ((event: SchedulerContextMenuItemClickEvent<Row>) => void) \| undefined;` | optional |  |
| `tooltip` | `readonly tooltip?: boolean \| SchedulerTooltip<Row> \| undefined;` | optional | Event tooltips on hover and keyboard focus: the public `Tooltip` in a lazy chunk; import `@salmonui/overlays/tooltip/styles.css` too. |
| `onBeforeTooltipOpen` | `readonly onBeforeTooltipOpen?: ((event: SchedulerBeforeTooltipOpenEvent<Row>) => void) \| undefined;` | optional |  |
| `onBeforePrint` | `readonly onBeforePrint?: ((event: SchedulerBeforePrintEvent) => void) \| undefined;` | optional | `api.print()`: cancellable before, and after the print dialog closes. |
| `onAfterPrint` | `readonly onAfterPrint?: ((event: SchedulerAfterPrintEvent) => void) \| undefined;` | optional |  |
| `height` | `readonly height?: number \| string \| undefined;` | optional |  |
| `width` | `readonly width?: number \| string \| undefined;` | optional |  |
| `dir` | `readonly dir?: 'ltr' \| 'rtl' \| undefined;` | optional |  |
| `className` | `readonly className?: string \| undefined;` | optional |  |
| `style` | `readonly style?: CSSProperties \| undefined;` | optional |  |
| `id` | `readonly id?: string \| undefined;` | optional |  |
| `aria-label` | `readonly 'aria-label'?: string \| undefined;` | optional |  |
| `ref` | `readonly ref?: Ref<SchedulerApi<Row>> \| undefined;` | optional |  |

### SchedulerQuickInfo

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerQuickInfo

```ts
interface SchedulerQuickInfo<Row = unknown> {
    readonly onSelectionEnd?: boolean;
    readonly renderHeader?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;
    readonly renderContent?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;
    readonly renderFooter?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `onSelectionEnd` | `readonly onSelectionEnd?: boolean;` | optional | Open the cell popup when a drag selection of cells ends. |
| `renderHeader` | `readonly renderHeader?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;` | optional |  |
| `renderContent` | `readonly renderContent?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;` | optional |  |
| `renderFooter` | `readonly renderFooter?: (ctx: SchedulerQuickInfoContext<Row>) => ReactNode;` | optional |  |

### SchedulerQuickInfoContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerQuickInfoContext

```ts
interface SchedulerQuickInfoContext<Row = unknown> {
    readonly kind: 'cell' | 'event';
    readonly row: Row | null;
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly close: () => void;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `kind` | `readonly kind: 'cell' \| 'event';` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `start` | `readonly start: Date;` |  |  |
| `end` | `readonly end: Date;` |  |  |
| `allDay` | `readonly allDay: boolean;` |  |  |
| `close` | `readonly close: () => void;` |  |  |

### SchedulerReadRequest

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerReadRequest

```ts
interface SchedulerReadRequest {
    readonly range: {
        readonly start: Date;
        readonly end: Date;
    };
    readonly view: SchedulerViewType;
    readonly resourceIds?: readonly unknown[];
    readonly signal: AbortSignal;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `range` | `readonly range: {     readonly start: Date;     readonly end: Date; };` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |
| `resourceIds` | `readonly resourceIds?: readonly unknown[];` | optional | Rendered resource ids (lazy loading). |
| `signal` | `readonly signal: AbortSignal;` |  |  |

### SchedulerReadResult

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerReadResult

```ts
interface SchedulerReadResult<Row> {
    readonly rows: readonly Row[];
}
```

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `rows` | `readonly rows: readonly Row[];` |  |  |

### SchedulerRenderedRange

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerRenderedRange

```ts
interface SchedulerRenderedRange {
    readonly start: number;
    readonly end: number;
    readonly resourceIds: readonly unknown[];
}
```

`api.getRenderedRange()`: rendered resource rows [start, end) of a timeline view and their leaf resource ids.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `start` | `readonly start: number;` |  |  |
| `end` | `readonly end: number;` |  |  |
| `resourceIds` | `readonly resourceIds: readonly unknown[];` |  |  |

### SchedulerResource

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerResource

```ts
interface SchedulerResource<Item = Record<string, unknown>> {
    readonly field: string;
    readonly name: string;
    readonly label?: string;
    readonly data: readonly Item[];
    readonly idField?: string;
    readonly textField?: string;
    readonly colorField?: string;
    readonly parentIdField?: string;
    readonly workDaysField?: string;
    readonly startHourField?: string;
    readonly endHourField?: string;
    readonly classNameField?: string;
    readonly expandedField?: string;
    readonly multiple?: boolean;
}
```

A resource definition: the items an event field refers to. Field options name the item properties.

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `field` | `readonly field: string;` |  | The event property that holds the item id (or ids with `multiple`). |
| `name` | `readonly name: string;` |  | Name used by `grouping.resources`. |
| `label` | `readonly label?: string;` | optional | Editor field label (default `name`). |
| `data` | `readonly data: readonly Item[];` |  |  |
| `idField` | `readonly idField?: string;` | optional | Item properties (defaults `id`, `text`, `color`, `parentId`, `workDays`, `startHour`, `endHour`, `className`, `expanded`). |
| `textField` | `readonly textField?: string;` | optional |  |
| `colorField` | `readonly colorField?: string;` | optional |  |
| `parentIdField` | `readonly parentIdField?: string;` | optional |  |
| `workDaysField` | `readonly workDaysField?: string;` | optional |  |
| `startHourField` | `readonly startHourField?: string;` | optional |  |
| `endHourField` | `readonly endHourField?: string;` | optional |  |
| `classNameField` | `readonly classNameField?: string;` | optional |  |
| `expandedField` | `readonly expandedField?: string;` | optional |  |
| `multiple` | `readonly multiple?: boolean;` | optional | An event may refer to several items (the field holds an array). |

### SchedulerResourceHeaderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerResourceHeaderContext

```ts
interface SchedulerResourceHeaderContext {
    readonly resource: SchedulerResourceInfo;
    readonly level: number;
    readonly expanded: boolean;
    readonly hasChildren: boolean;
    readonly view: SchedulerViewType;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `resource` | `readonly resource: SchedulerResourceInfo;` |  |  |
| `level` | `readonly level: number;` |  | Grouping level, 0 outermost. |
| `expanded` | `readonly expanded: boolean;` |  |  |
| `hasChildren` | `readonly hasChildren: boolean;` |  |  |
| `view` | `readonly view: SchedulerViewType;` |  |  |

### SchedulerResourceInfo

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerResourceInfo

```ts
interface SchedulerResourceInfo {
    readonly resource: string;
    readonly field: string;
    readonly id: unknown;
    readonly text: string;
    readonly color: string | undefined;
    readonly parentId: unknown;
    readonly className: string | undefined;
    readonly data: unknown;
}
```

One resource item (`api.getResources()`, header templates).

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `resource` | `readonly resource: string;` |  |  |
| `field` | `readonly field: string;` |  |  |
| `id` | `readonly id: unknown;` |  |  |
| `text` | `readonly text: string;` |  |  |
| `color` | `readonly color: string \| undefined;` |  |  |
| `parentId` | `readonly parentId: unknown;` |  |  |
| `className` | `readonly className: string \| undefined;` |  |  |
| `data` | `readonly data: unknown;` |  |  |

### SchedulerSaveEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerSaveEvent

```ts
interface SchedulerSaveEvent<Row> extends SchedulerEvent {
    readonly added: readonly Row[];
    readonly changed: readonly Row[];
    readonly deleted: readonly Row[];
    readonly scope: EditScope;
    readonly data: readonly Row[];
}
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `added` | `readonly added: readonly Row[];` |  |  |
| `changed` | `readonly changed: readonly Row[];` |  |  |
| `deleted` | `readonly deleted: readonly Row[];` |  |  |
| `scope` | `readonly scope: EditScope;` |  |  |
| `data` | `readonly data: readonly Row[];` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerSlotRenderContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerSlotRenderContext

```ts
interface SchedulerSlotRenderContext {
    readonly date: PlainDate;
    readonly minutes: number;
    readonly major: boolean;
    readonly text: string;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `date` | `readonly date: PlainDate;` |  |  |
| `minutes` | `readonly minutes: number;` |  | Minutes after midnight. |
| `major` | `readonly major: boolean;` |  |  |
| `text` | `readonly text: string;` |  |  |

### SchedulerState

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerState

```ts
interface SchedulerState {
    readonly view: string;
    readonly date: string;
    readonly allDayExpanded: boolean;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `view` | `readonly view: string;` |  |  |
| `date` | `readonly date: string;` |  |  |
| `allDayExpanded` | `readonly allDayExpanded: boolean;` |  |  |

### SchedulerTableExportOptions

Kind: interface

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

```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. |

### SchedulerTimeScale

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerTimeScale

```ts
interface SchedulerTimeScale {
    readonly enabled?: boolean;
    readonly interval?: number;
    readonly slotCount?: number;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `enabled` | `readonly enabled?: boolean;` | optional | Default true; false hides the time slots of day views (events stack by start). |
| `interval` | `readonly interval?: number;` | optional | Minutes per major slot (default 60). |
| `slotCount` | `readonly slotCount?: number;` | optional | Minor slots per major slot (default 2). |

### SchedulerTooltip

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerTooltip

```ts
interface SchedulerTooltip<Row = unknown> {
    readonly render?: ((ctx: SchedulerTooltipContext<Row>) => ReactNode) | undefined;
}
```

`tooltip` options.

Members (1):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `render` | `readonly render?: ((ctx: SchedulerTooltipContext<Row>) => ReactNode) \| undefined;` | optional | Tooltip content; default the title, the time range and the location. |

### SchedulerTooltipContext

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerTooltipContext

```ts
interface SchedulerTooltipContext<Row = unknown> {
    readonly occurrence: SchedulerEventInfo<Row>;
    readonly row: Row;
    readonly element: Element;
}
```

The event a tooltip is about.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `occurrence` | `readonly occurrence: SchedulerEventInfo<Row>;` |  |  |
| `row` | `readonly row: Row;` |  |  |
| `element` | `readonly element: Element;` |  |  |

### SchedulerViewChangeEvent

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerViewChangeEvent

```ts
interface SchedulerViewChangeEvent extends SchedulerEvent {
    readonly view: string;
    readonly previousView: string;
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `view` | `readonly view: string;` |  |  |
| `previousView` | `readonly previousView: string;` |  |  |
| `type` | `type: string;` | inherited |  |
| `source` | `source: SchedulerEventSource;` | inherited |  |

### SchedulerViewConfig

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerViewConfig

```ts
interface SchedulerViewConfig<Row = unknown> {
    readonly type: SchedulerViewType;
    readonly name?: string;
    readonly label?: string;
    readonly interval?: number;
    readonly startHour?: string;
    readonly endHour?: string;
    readonly workDays?: readonly number[];
    readonly showWeekend?: boolean;
    readonly readOnly?: boolean;
    readonly dateFormat?: Intl.DateTimeFormatOptions;
    readonly timeScale?: SchedulerTimeScale;
    readonly renderEvent?: (ctx: SchedulerEventRenderContext<Row>) => ReactNode;
    readonly eventLayout?: SchedulerEventLayout;
    readonly monthCount?: number;
    readonly firstMonthOfYear?: number;
    readonly agendaDayCount?: number;
    readonly hideEmptyAgendaDays?: boolean;
    readonly orientation?: 'horizontal' | 'vertical';
    readonly virtualScroll?: boolean | SchedulerVirtualScroll;
    readonly headerRows?: readonly SchedulerHeaderRow[];
    readonly renderMonthHeader?: (ctx: SchedulerMonthHeaderContext) => ReactNode;
    readonly renderDayHeader?: (ctx: SchedulerDayHeaderContext) => ReactNode;
}
```

One view entry of `views`: overrides the top-level prop of the same name for that view.

Members (22):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `readonly type: SchedulerViewType;` |  |  |
| `name` | `readonly name?: string;` | optional | Name used by `view` (default `type`; give distinct names to two entries of one type). |
| `label` | `readonly label?: string;` | optional | Button label (default from `localeText`). |
| `interval` | `readonly interval?: number;` | optional | Days, weeks, months or years per page (a 3-day view: `{ type: 'day', interval: 3 }`). |
| `startHour` | `readonly startHour?: string;` | optional |  |
| `endHour` | `readonly endHour?: string;` | optional |  |
| `workDays` | `readonly workDays?: readonly number[];` | optional |  |
| `showWeekend` | `readonly showWeekend?: boolean;` | optional |  |
| `readOnly` | `readonly readOnly?: boolean;` | optional |  |
| `dateFormat` | `readonly dateFormat?: Intl.DateTimeFormatOptions;` | optional |  |
| `timeScale` | `readonly timeScale?: SchedulerTimeScale;` | optional |  |
| `renderEvent` | `readonly renderEvent?: (ctx: SchedulerEventRenderContext<Row>) => ReactNode;` | optional |  |
| `eventLayout` | `readonly eventLayout?: SchedulerEventLayout;` | optional |  |
| `monthCount` | `readonly monthCount?: number;` | optional | Year views: months per page and the first month. |
| `firstMonthOfYear` | `readonly firstMonthOfYear?: number;` | optional |  |
| `agendaDayCount` | `readonly agendaDayCount?: number;` | optional | Agenda: days per page. |
| `hideEmptyAgendaDays` | `readonly hideEmptyAgendaDays?: boolean;` | optional | Agenda: skip days without events (default true). |
| `orientation` | `readonly orientation?: 'horizontal' \| 'vertical';` | optional | Timeline Year: months as rows (`'horizontal'`, default) or as columns. |
| `virtualScroll` | `readonly virtualScroll?: boolean \| SchedulerVirtualScroll;` | optional | Virtual scrolling of timeline resource rows or of the agenda days. |
| `headerRows` | `readonly headerRows?: readonly SchedulerHeaderRow[];` | optional | Timeline header rows. |
| `renderMonthHeader` | `readonly renderMonthHeader?: (ctx: SchedulerMonthHeaderContext) => ReactNode;` | optional | Year and Timeline Year month and weekday headers. |
| `renderDayHeader` | `readonly renderDayHeader?: (ctx: SchedulerDayHeaderContext) => ReactNode;` | optional |  |

### SchedulerVirtualScroll

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerVirtualScroll

```ts
interface SchedulerVirtualScroll {
    readonly overscan?: number;
    readonly lazyLoad?: boolean;
    readonly initialRange?: {
        readonly start: number;
        readonly end: number;
    };
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `overscan` | `readonly overscan?: number;` | optional | Rows (or agenda batches) rendered beyond the viewport on each side (default 4). |
| `lazyLoad` | `readonly lazyLoad?: boolean;` | optional | Remote data reads only the rendered resources: `read` receives `resourceIds`. |
| `initialRange` | `readonly initialRange?: {     readonly start: number;     readonly end: number; };` | optional | Rows rendered on the server and on the first client render, before the viewport is measured (default 0 to 20). |

### SchedulerWorkHours

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerWorkHours

```ts
interface SchedulerWorkHours {
    readonly highlight?: boolean;
    readonly start?: string;
    readonly end?: string;
}
```

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `highlight` | `readonly highlight?: boolean;` | optional | Highlight work hours in day views (default true). |
| `start` | `readonly start?: string;` | optional | `'HH:mm'` (default `'09:00'` and `'18:00'`). |
| `end` | `readonly end?: string;` | optional |  |

### SchedulerWriteRequest

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerWriteRequest

```ts
interface SchedulerWriteRequest<Row> {
    readonly action: 'add' | 'save' | 'delete';
    readonly added: readonly Row[];
    readonly changed: readonly Row[];
    readonly deleted: readonly Row[];
    readonly signal: AbortSignal;
}
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `action` | `readonly action: 'add' \| 'save' \| 'delete';` |  |  |
| `added` | `readonly added: readonly Row[];` |  |  |
| `changed` | `readonly changed: readonly Row[];` |  |  |
| `deleted` | `readonly deleted: readonly Row[];` |  |  |
| `signal` | `readonly signal: AbortSignal;` |  |  |

### SchedulerWriteResult

Kind: interface

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerWriteResult

```ts
interface SchedulerWriteResult<Row> {
    readonly status?: 'applied' | 'rejected';
    readonly rows?: readonly Row[];
}
```

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `status` | `readonly status?: 'applied' \| 'rejected';` | optional | `'rejected'` reverts the change (as a thrown error does). |
| `rows` | `readonly rows?: readonly Row[];` | optional | Server versions of the added and changed rows (replace the local copies by id). |

## Types

### DateInput

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/DateInput

```ts
type DateInput = PlainDateLike | Date | string;
```

A date value: fields, a `Date` (an instant, read in the time zone) or an ISO 8601 string (`'2026-11-23'`).

### DateTimeInput

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/DateTimeInput

```ts
type DateTimeInput = PlainDateTimeLike | Date | string;
```

A date-time value: fields, a `Date` or an ISO date-time string (`'2026-11-23T14:30'`).

### EditScope

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/EditScope

```ts
type EditScope = 'occurrence' | 'following' | 'series';
```

### EventId

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/EventId

```ts
type EventId = string | number;
```

### InstantInput

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/InstantInput

```ts
type InstantInput = Date | number | string;
```

An instant: a `Date`, epoch milliseconds, or an ISO 8601 string with `Z` or an offset.

### PlainDateTimeLike

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/PlainDateTimeLike

```ts
type PlainDateTimeLike = PlainDateLike & PlainTimeLike;
```

Members (7):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `year` | `year: number;` | inherited |  |
| `month` | `month: number;` | inherited |  |
| `day` | `day: number;` | inherited |  |
| `hour` | `hour: number;` | inherited |  |
| `minute` | `minute: number;` | inherited |  |
| `second` | `second?: number;` | optional, inherited |  |
| `millisecond` | `millisecond?: number;` | optional, inherited |  |

### RecurrenceEndType

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceEndType

```ts
type RecurrenceEndType = 'never' | 'until' | 'count';
```

### RecurrenceFrequency

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceFrequency

```ts
type RecurrenceFrequency = 'daily' | 'weekly' | 'monthly' | 'yearly';
```

### RecurrenceFrequencyOption

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceFrequencyOption

```ts
type RecurrenceFrequencyOption = 'never' | 'daily' | 'weekly' | 'monthly' | 'yearly';
```

### RecurrenceParseResult

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/RecurrenceParseResult

```ts
type RecurrenceParseResult = {
    readonly ok: true;
    readonly rule: RecurrenceRule;
} | {
    readonly ok: false;
    readonly error: string;
};
```

### SchedulerCellPart

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerCellPart

```ts
type SchedulerCellPart = 'workCell' | 'monthCell' | 'allDayCell' | 'dateHeader' | 'timeSlot' | 'resourceHeader';
```

### SchedulerContextMenuContext

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerContextMenuContext

```ts
type SchedulerContextMenuContext<Row = unknown> = {
    readonly kind: 'cell';
    readonly start: Date;
    readonly end: Date;
    readonly allDay: boolean;
    readonly resources: Readonly<Record<string, readonly unknown[]>> | null;
    readonly element: Element;
} | {
    readonly kind: 'event';
    readonly occurrence: SchedulerEventInfo<Row>;
    readonly row: Row;
    readonly element: Element;
};
```

What a context menu opened on: a cell (or cell range) or an event occurrence.

### SchedulerEventFields

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventFields

```ts
type SchedulerEventFields = Partial<Record<keyof SchedulerEventFieldMap, string | SchedulerEventFieldConfig>>;
```

Members (15):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `allDay` | `allDay?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `block` | `block?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `description` | `description?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `end` | `end?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `endTimeZone` | `endTimeZone?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `followingId` | `followingId?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `id` | `id?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `location` | `location?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `readOnly` | `readOnly?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `recurrenceExceptions` | `recurrenceExceptions?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `recurrenceId` | `recurrenceId?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `recurrenceRule` | `recurrenceRule?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `start` | `start?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `startTimeZone` | `startTimeZone?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |
| `title` | `title?: string \| SchedulerEventFieldConfig;` | optional, inherited |  |

### SchedulerEventSource

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerEventSource

```ts
type SchedulerEventSource = 'pointer' | 'keyboard' | 'touch' | 'api';
```

### SchedulerExportField

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExportField

```ts
type SchedulerExportField = string | {
    readonly field: string;
    readonly headerText?: string | undefined;
    readonly width?: number | undefined;
};
```

An exported field: a role (`title`), a mapped property (`Subject`) or another row property; objects set the header and the width (px).

### SchedulerExportFormat

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerExportFormat

```ts
type SchedulerExportFormat = 'excel' | 'csv' | 'icalendar';
```

### SchedulerHeaderUnit

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerHeaderUnit

```ts
type SchedulerHeaderUnit = 'year' | 'month' | 'week' | 'date' | 'hour';
```

### SchedulerKeyCommand

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerKeyCommand

```ts
type SchedulerKeyCommand = 'navigation.previous' | 'navigation.next' | 'view.1' | 'view.2' | 'view.3' | 'view.4' | 'view.5' | 'view.6' | 'view.7' | 'view.8' | 'view.9' | 'event.delete' | 'selection.clear' | 'clipboard.copy' | 'clipboard.cut' | 'clipboard.paste';
```

Remappable keyboard commands; the arrow, Home and End keys of the grid are fixed (APG).

### SchedulerMenuItem

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerMenuItem

```ts
type SchedulerMenuItem = MenuItemData;
```

A context menu entry: the data form of the `@salmonui/buttons/menu` entries (`items`, separators, groups, submenus).

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `type` | `type?: "group" \| "item" \| "separator";` | optional, inherited |  |
| `id` | `id?: string;` | optional, inherited | Stable item key, reported in `onAction` (required for items). |
| `label` | `label?: ReactNode;` | optional, inherited |  |
| `textValue` | `textValue?: string;` | optional, inherited | Typeahead text when `label` is not plain text. |
| `icon` | `icon?: ReactNode;` | optional, inherited |  |
| `disabled` | `disabled?: boolean;` | optional, inherited |  |
| `href` | `href?: string;` | optional, inherited | Renders the item as a link (`<a role="menuitem">`). |
| `target` | `target?: string;` | optional, inherited |  |
| `title` | `title?: string;` | optional, inherited |  |
| `items` | `items?: readonly MenuItemData[];` | optional, inherited | Submenu entries (type `'item'`) or group entries (type `'group'`). |

### SchedulerPopup

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerPopup

```ts
type SchedulerPopup = 'editor' | 'quickInfo' | 'moreEvents' | 'recurrenceAlert' | 'deleteAlert' | 'validationAlert' | 'overlapAlert';
```

### SchedulerToolbarItem

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerToolbarItem

```ts
type SchedulerToolbarItem = 'previous' | 'next' | 'today' | 'dateRange' | 'newEvent' | 'views' | {
    readonly id: string;
    readonly label: string;
    readonly align?: 'start' | 'end';
    readonly onClick?: () => void;
    readonly render?: () => ReactNode;
};
```

### SchedulerViewEntry

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerViewEntry

```ts
type SchedulerViewEntry<Row = unknown> = SchedulerViewType | SchedulerViewConfig<Row>;
```

### SchedulerViewType

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/SchedulerViewType

```ts
type SchedulerViewType = 'day' | 'week' | 'workWeek' | 'month' | 'year' | 'agenda' | 'monthAgenda' | 'timelineDay' | 'timelineWeek' | 'timelineWorkWeek' | 'timelineMonth' | 'timelineYear';
```

### TimeInput

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/TimeInput

```ts
type TimeInput = PlainTimeLike | Date | string;
```

A time value: fields, a `Date` or an ISO time string (`'14:30'`, `'14:30:05'`).

### WeekRule

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/WeekRule

```ts
type WeekRule = 'firstDay' | 'firstFullWeek' | 'firstFourDayWeek';
```

Which week of January is week 1.

### WeekdayFormat

Kind: type

Page: https://salmonui.dev/docs/reference/scheduler/WeekdayFormat

```ts
type WeekdayFormat = 'narrow' | 'short' | 'long';
```

## Constants

### RECURRENCE_EDITOR_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/scheduler/RECURRENCE_EDITOR_DEFAULT_LOCALE_TEXT

```ts
const RECURRENCE_EDITOR_DEFAULT_LOCALE_TEXT: RecurrenceEditorLocaleText;
```

### RECURRENCE_SUMMARY_DEFAULT_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/scheduler/RECURRENCE_SUMMARY_DEFAULT_TEXT

```ts
const RECURRENCE_SUMMARY_DEFAULT_TEXT: RecurrenceSummaryText;
```

### SCHEDULER_DEFAULT_LOCALE_TEXT

Kind: const

Page: https://salmonui.dev/docs/reference/scheduler/SCHEDULER_DEFAULT_LOCALE_TEXT

```ts
const SCHEDULER_DEFAULT_LOCALE_TEXT: SchedulerLocaleText;
```
