The snapToGridRectangleSelecting property (boolean) determines whether row-mode rectangle selection is snapped to grid cells in the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.snapToGridRectangleSelectingDefault Value
trueNotes
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot