API reference: @salmonui/scheduler
SchedulerDragOptionsinterface
import type { SchedulerDragOptions } from '@salmonui/scheduler';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.
| Name | Signature | Description |
|---|---|---|
snapMinutesoptional | readonly snapMinutes?: number | undefined; | Minutes a timed start or end snaps to (default the slot length, |
autoScrolloptional | readonly autoScroll?: boolean | undefined; | Scroll the view while the pointer is near its edges (default true). |
navigateOnEdgeoptional | readonly navigateOnEdge?: boolean | {
readonly delay?: number | undefined;
} | undefined; | Navigate to the previous / next range after the pointer rests at the inline edge of the Scheduler (default false; |
excludeSelectoroptional | readonly excludeSelector?: string | undefined; | A pointer down inside an element matching this selector does not drag or resize. |
multipleoptional | readonly multiple?: boolean | undefined; | Dragging a selected event moves every selected event by the same offset. |
dragOutAreaoptional | readonly dragOutArea?: Element | string | null | undefined; | Element or selector: dropping an event over it fires |
groupoptional | readonly group?: string | undefined; | Schedulers with the same group accept each other's events; one registry per document. |