The snapToGridTimeRangeSelecting property (boolean) determines whether the selection is snapped to grid cells when selecting a time range in the JavaScript Scheduler component.
DayPilot.Scheduler.snapToGridTimeRangeSelectingtrueTime range selection snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridTimeRangeSelecting are set to true.
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"
<!-- ... -->
/>