The businessWeekends property (boolean) determines whether weekends (Saturday and Sunday) will be considered business days.
Declaration
DayPilot.Scheduler.businessWeekendsDefault Value
falseNotes
It affects marking grid cells as business using CSS (see also cellsMarkBusiness).
It also affects hiding non-business hours using showNonBusiness.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
businessWeekends: true,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
businessWeekends: true,
// ...
};React
<DayPilotScheduler
businessWeekends={true}
{/* ... */}
/>Vue
<DayPilotScheduler
:businessWeekends="true"
<!-- ... -->
/>See Also
DayPilot.Scheduler.cellsMarkBusiness
DayPilot.Scheduler.showNonBusiness
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot