API reference: @salmonui/scheduler
SchedulerBeforePasteEventinterface
import type { SchedulerBeforePasteEvent } from '@salmonui/scheduler';interface SchedulerBeforePasteEvent<Row = unknown> extends SchedulerCancelableEvent {
data: readonly Row[];
readonly cut: boolean;
readonly start: Date;
}
onBeforePaste: preventDefault() cancels; replace data to paste other rows.
| Name | Signature | 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; | |
typeinherited | type: string; | |
sourceinherited | source: SchedulerEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | |
preventDefaultinherited | preventDefault: () => void; |