DayPilot.Scheduler.snapToGridEventResizing

The snapToGridEventResizing property (boolean) determines whether the target position is snapped to grid cells when resizing an event using drag and drop in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.snapToGridEventResizing

Default Value

true

Notes

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

Examples

JavaScript

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

Angular

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

React

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

Vue

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

See Also

DayPilot.Scheduler.snapToGrid

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript