DayPilot.Scheduler.snapToGridRectangleSelecting

The snapToGridRectangleSelecting property (boolean) determines whether row-mode rectangle selection is snapped to grid cells in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.snapToGridRectangleSelecting

Default Value

true

Notes

Rectangle selection snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridRectangleSelecting are set to true.

Examples

JavaScript

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

Angular

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

React

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

Vue

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

See Also

DayPilot.Scheduler.snapToGrid

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript