The eventMoveSkipNonBusiness property (boolean) preserves the source event’s business duration during drag and drop moving. The Scheduler skips non-business time in the target row and adjusts the event end, which can shorten or lengthen its elapsed duration.
Declaration
DayPilot.Scheduler.eventMoveSkipNonBusinessDefault Value
falseBusiness Time and Invalid Targets
The original resource’s business calendar determines how many business hours to preserve. The target resource’s calendar determines the new end. Custom onBeforeCellRender business flags apply even to dates outside the visible area and to frozen rows.
Since version 2026.4.7083, a move is rejected if the source has zero business duration or the target cannot fit the original business duration within its row and timeline bounds. A forbidden shadow is shown; no explanation label is added automatically. Inspect read-only args.invalid in onEventMoving for optional application feedback.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
eventMoveSkipNonBusiness: true,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
eventMoveSkipNonBusiness: true,
// ...
};React
<DayPilotScheduler
eventMoveSkipNonBusiness={true}
/>Vue
<DayPilotScheduler
:eventMoveSkipNonBusiness="true"
/>See Also
Event Moving [doc.daypilot.org]
Hiding Non-Business Hours [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot