The snapToGridEventMoving property (boolean) determines whether the target position is snapped to grid cells when moving an event using drag and drop in the JavaScript Scheduler component.
Declaration
DayPilot.Scheduler.snapToGridEventMovingDefault Value
trueNotes
Event moving snap-to-grid is enabled only when both DayPilot.Scheduler.snapToGrid and snapToGridEventMoving are set to true.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
snapToGrid: true,
snapToGridEventMoving: false,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
snapToGrid: true,
snapToGridEventMoving: false,
// ...
};React
<DayPilotScheduler
snapToGrid={true}
snapToGridEventMoving={false}
{/* ... */}
/>Vue
<DayPilotScheduler
:snapToGrid="true"
:snapToGridEventMoving="false"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot