DayPilot.Scheduler.snapToGridEventMoving

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.

Declaration

DayPilot.Scheduler.snapToGridEventMoving

Default Value

true

Notes

Event moving snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridEventMoving are set to true.

Examples

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"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.snapToGrid

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript