DayPilot.Scheduler.snapToGrid

The snapToGrid property (boolean) determines whether drag-and-drop interactions are snapped to grid cells in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.snapToGrid

Default Value

true

Notes

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  snapToGrid: false,
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  snapToGrid: false,
  // ...
};

React

<DayPilotScheduler
  snapToGrid={false}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  :snapToGrid="false"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.useEventBoxes

DayPilot.Scheduler.snapToGridEventMoving

DayPilot.Scheduler.snapToGridEventResizing

DayPilot.Scheduler.snapToGridTimeRangeSelecting

DayPilot.Scheduler.snapToGridRectangleSelecting

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript