The snapToGridRectangleSelecting property (boolean) determines whether row-mode rectangle selection is snapped to grid cells in the JavaScript Scheduler component.
DayPilot.Scheduler.snapToGridRectangleSelectingtrueRectangle selection snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridRectangleSelecting are set to true.
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"
<!-- ... -->
/>