API reference
@salmonui/scheduler
147 exported symbols: 1 component, 13 functions, 104 interfaces, 26 types and 3 constants. Each name links its page with the signature, docs and members.
import { … } from '@salmonui/scheduler';Components
Functions
RecurrenceEditorformatRecurrenceRulePrints a rule in canonical part order (FREQ, INTERVAL, BYDAY, BYMONTHDAY, BYMONTH, BYSETPOS, WKST, COUNT, UNTIL); parseRecurrenceRule reads it back.fromZonedDateTimeThe instant (Date) of wall time wallTime in zone; DST gaps move forward and overlaps take the earlier instant (Temporal 'compatible'). An invalid input gives a…getRangeDaysInclusive number of days of a range; 0 for null.getRecurrenceDatesOccurrence wall times of a rule, as PlainDateTimes in timeZone. Exceptions are skipped; never throws.getRecurrenceSummaryA 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 give…getTimeZoneOffsetOffset 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.parseRecurrenceRuleParses an RRULE string (FREQ=WEEKLY;BYDAY=MO,WE, optionally prefixed RRULE:). Unsupported or invalid parts give an error result; it never throws.toDateThe 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 o…toPlainDateNormalizes a DateInput (an invalid input is null; never throws).toPlainDateTimeNormalizes a DateTimeInput; a date-only input is midnight.toPlainTimeNormalizes a TimeInput; a date-time input keeps its time part.toZonedDateTimeWall time of instant in zone as a PlainDateTime; null for an unknown zone or invalid instant.
Interfaces
DateRangeAn inclusive range of two values.FieldValidationOccurrenceOne rendered instance of an event (a plain event, or an occurrence of a series).PlainDateA frozen ISO calendar date. String(date) and JSON.stringify give YYYY-MM-DD.PlainDateLikeAnything with ISO calendar date fields (Temporal.PlainDate included). Month is 1-12.PlainDateTimeA frozen date and wall-clock time. String(value) gives YYYY-MM-DDTHH:mm:ss.PlainTimeA frozen wall-clock time. String(time) gives HH:mm:ss (.sss when milliseconds are set).PlainTimeLikeAnything with wall-clock time fields (Temporal.PlainTime included).RecurrenceDatesOptionsRecurrenceEditorChangeDetailsRecurrenceEditorLocaleTextRecurrenceEditorPropsRecurrenceRuleA parsed recurrence rule. Frozen when produced by parseRecurrenceRule.RecurrenceSummaryOptionsRecurrenceSummaryTextMessages of getRecurrenceSummary (Data Grid message format; {interval}, {days}, {day}, {ordinal}, {weekday}, {month}, {date}, {count}). The one form is used fo…RecurrenceUntilThe end of a rule (UNTIL): a date, or a date-time that is floating or UTC.RecurrenceWeekdayA BYDAY entry: weekday 0 Sunday ... 6 Saturday, ordinal 1..53 or -1..-53 (2MO, -1FR).SchedulerActionResultSchedulerAdaptiveadaptive options.SchedulerAddEventSchedulerAfterPrintEventonAfterPrint: the window's afterprint after a print().SchedulerApiSchedulerBeforeAddEventSchedulerBeforeDeleteEventSchedulerBeforeDropEventSchedulerBeforeExportEventonBeforeExport: preventDefault() cancels; the export resolves to null.SchedulerBeforePasteEventonBeforePaste: preventDefault() cancels; replace data to paste other rows.SchedulerBeforePopupOpenEventSchedulerBeforePrintEventonBeforePrint: preventDefault() cancels; print() resolves false.SchedulerBeforeSaveEventSchedulerBeforeTooltipOpenEventonBeforeTooltipOpen: preventDefault() keeps the tooltip closed.SchedulerCancelableEventSchedulerCellClickEventSchedulerCellContextSchedulerCellInfoSchedulerCellPropsSchedulerCellSelectionSchedulerCellSelectionChangeEventSchedulerContextMenuItemClickEventonContextMenuItemClick: a chosen item. The default items (newEvent, newRecurringEvent and today on cells, edit and delete on events) run their action unless pr…SchedulerCsvExportOptionsSchedulerDataLoadEventSchedulerDataSourceSchedulerDateChangeEventChange events.SchedulerDateRangeContextSchedulerDayHeaderContextSchedulerDeleteEventSchedulerDialogContextSchedulerDragEventSchedulerDragOptionsdragOptions: drag, resize, multi-drag, drag out and drag between Schedulers.SchedulerDragOutEventonEventDragOut: an event dropped over dragOptions.dragOutArea.SchedulerDragStartEventSchedulerDropEventSchedulerEditingSchedulerErrorEventSchedulerEventSchedulerEventClickEventSchedulerEventFieldConfigSchedulerEventInfoSchedulerEventLayoutSchedulerEventPropsSchedulerEventPropsContextSchedulerEventRenderContextSchedulerEventSelectionChangeEventonEventSelectionChange: the selected events after a click, Ctrl / Cmd + click (toggle) or Shift + click (range).SchedulerExcelExportOptionsSchedulerExportEventonExport: the written file, before the download.SchedulerExportFileA file of exportToExcel, exportToCsv or exportToICalendar.SchedulerExportWritersWriter loaders: dynamic imports of @salmonui/export subpaths, so the writers load on first use (@salmonui/scheduler never imports them).SchedulerExternalDropEventonExternalDrop: HTML drag data dropped on a slot; return rows to add them (onBeforeAdd / onAdd).SchedulerGroupingResource grouping.SchedulerHeaderCellContextSchedulerHeaderRowSchedulerHoverEventSchedulerICalendarExportOptionsSchedulerICalendarImportOptionsSchedulerLocaleTextSchedulerMonthHeaderContextSchedulerMoreEventsClickEventSchedulerOverlapEventSchedulerPasteTargetWhere paste puts the clipboard (default: the selected cells, else the focused cell).SchedulerPopupCloseEventSchedulerPrintOptionsprint() options: the printed Scheduler's size, as CSS lengths (numbers are px).SchedulerPropsSchedulerQuickInfoSchedulerQuickInfoContextSchedulerReadRequestSchedulerReadResultSchedulerRenderedRangeapi.getRenderedRange(): rendered resource rows [start, end) of a timeline view and their leaf resource ids.SchedulerResourceA resource definition: the items an event field refers to. Field options name the item properties.SchedulerResourceHeaderContextSchedulerResourceInfoOne resource item (api.getResources(), header templates).SchedulerSaveEventSchedulerSlotRenderContextSchedulerStateSchedulerTableExportOptionsSchedulerTimeScaleSchedulerTooltiptooltip options.SchedulerTooltipContextThe event a tooltip is about.SchedulerViewChangeEventSchedulerViewConfigOne view entry of views: overrides the top-level prop of the same name for that view.SchedulerVirtualScrollSchedulerWorkHoursSchedulerWriteRequestSchedulerWriteResult
Types
DateInputA date value: fields, a Date (an instant, read in the time zone) or an ISO 8601 string ('2026-11-23').DateTimeInputA date-time value: fields, a Date or an ISO date-time string ('2026-11-23T14:30').EditScopeEventIdInstantInputAn instant: a Date, epoch milliseconds, or an ISO 8601 string with Z or an offset.PlainDateTimeLikeRecurrenceEndTypeRecurrenceFrequencyRecurrenceFrequencyOptionRecurrenceParseResultSchedulerCellPartSchedulerContextMenuContextWhat a context menu opened on: a cell (or cell range) or an event occurrence.SchedulerEventFieldsSchedulerEventSourceSchedulerExportFieldAn exported field: a role (title), a mapped property (Subject) or another row property; objects set the header and the width (px).SchedulerExportFormatSchedulerHeaderUnitSchedulerKeyCommandRemappable keyboard commands; the arrow, Home and End keys of the grid are fixed (APG).SchedulerMenuItemA context menu entry: the data form of the @salmonui/buttons/menu entries (items, separators, groups, submenus).SchedulerPopupSchedulerToolbarItemSchedulerViewEntrySchedulerViewTypeTimeInputA time value: fields, a Date or an ISO time string ('14:30', '14:30:05').WeekRuleWhich week of January is week 1.WeekdayFormat