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