DayPilot.Scheduler.snapToGridTimeRangeSelecting

The snapToGridTimeRangeSelecting property (boolean) determines whether the selection is snapped to grid cells when selecting a time range in the JavaScript Scheduler component.

Declaration

DayPilot.Scheduler.snapToGridTimeRangeSelecting

Default Value

true

Notes

Time range selection snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridTimeRangeSelecting are set to true.

Examples

JavaScript

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

Angular

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

React

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

Vue

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

See Also

DayPilot.Scheduler.snapToGrid

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript