Skip to content

dragEdgeNavigate

Holding a dragged event at the side of the calendar goes to the previous or the next period.

Typeboolean
Defaulttrue
Live update (update())Yes
Declared inpackages/dom/src/settings.ts

While an event is dragged, held near the start or the end side of the grid for a moment (0.6 s in a time grid, 0.9 s in a month or a timeline), the calendar moves to the previous or next week (month, day…) and the drag goes on there — an appointment moves to next Tuesday without dropping it and paging. With false a pointer drag stays in the period shown; the keyboard’s held event still goes on to the next period when an arrow passes the edge. Only moves page, not resizes, and not an element dragged in from the page.

import { createCalendar } from '@dzcalendar/dom';
createCalendar(element, { timeZone: 'Europe/Paris', editable: true, dragEdgeNavigate: false });

In Angular and Vue it goes in options; in React it is a prop.