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.
Manual Infinite Scrolling
When infiniteScrollingEnabled: true, days must be a finite number greater than zero. Invalid settings raise an error. See Infinite Scrolling for configuration guidance.
With infiniteScrollingEnabled: "Auto", this property does not set or report the automatically chosen range. Use visibleStart() and visibleEnd() to read the timeline bounds.
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