View as Markdown

API reference: @salmonui/scheduler

SchedulerDropEventinterface

import type { SchedulerDropEvent } from '@salmonui/scheduler';
interface SchedulerDropEvent<Row> extends SchedulerEvent, SchedulerDragFields<Row> {
    readonly result: SchedulerActionResult<Row>;
}
SchedulerDropEvent members (12, 11 inherited)
NameSignatureDescription
resultreadonly result: SchedulerActionResult<Row>;
typeinheritedtype: string;
sourceinheritedsource: SchedulerEventSource;
rowinheritedrow: Row;
rowsinheritedrows: readonly Row[];

Every moved row (more than one with dragOptions.multiple).

startinheritedstart: Date;

Proposed start and end of the dragged or resized event.

endinheritedend: Date;
allDayinheritedallDay: boolean;
resourceIdsinheritedresourceIds: Readonly<Record<string, readonly unknown[]>> | null;

Resource ids per resource field after the drop, or null when they do not change.

elementinheritedelement: Element;

The event element the gesture started on.

targetinheritedtarget: Element | null;

The cell under the pointer, or null outside the view.

edgeoptionalinheritededge?: "end" | "start";

Resized edge (resize events).