View as Markdown

API reference: @salmonui/scheduler

SchedulerPasteTargetinterface

import type { SchedulerPasteTarget } from '@salmonui/scheduler';
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).

SchedulerPasteTarget members (3)
NameSignatureDescription
startreadonly start: Date;
allDayoptionalreadonly allDay?: boolean | undefined;

Shift by whole days and keep each event's time of day (month cells and the all-day row).

resourcesoptionalreadonly resources?: Readonly<Record<string, readonly unknown[]>> | undefined;

Resource ids by resource field; pasted (and cut) events move to them.