The days property (number) sets the visible time range of the JavaScript Scheduler in days. Use startDate to set the first visible date.
Declaration
DayPilot.Scheduler.daysDefault Value
1Notes
If showNonBusiness is set to false and businessWeekends is set to false, the resulting timeline may be shorter than the specified days value because non-business days are removed after the timeline is generated.
Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
days: 30,
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
days: 30,
// ...
};React
<DayPilotScheduler
days={30}
{/* ... */}
/>Vue
<DayPilotScheduler
:days="30"
<!-- ... -->
/>See Also
DayPilot.Scheduler.cellDuration
DayPilot.Scheduler.cellGroupBy
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot