The snapToGridEventMoving property (boolean) determines whether the target position is snapped to grid cells when moving an event using drag and drop in the JavaScript Scheduler component.
DayPilot.Scheduler.snapToGridEventMovingtrueEvent moving snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridEventMoving are set to true.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
snapToGrid: true,
snapToGridEventMoving: false,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
snapToGrid: true,
snapToGridEventMoving: false,
// ...
};React
<DayPilotScheduler
snapToGrid={true}
snapToGridEventMoving={false}
{/* ... */}
/>Vue
<DayPilotScheduler
:snapToGrid="true"
:snapToGridEventMoving="false"
<!-- ... -->
/>