The days property (number) sets the number of days that will be displayed in the JavaScript Calendar.
Declaration
DayPilot.Calendar.daysDefault Value
1Notes
In the days view (
viewType: "Days"), it specifies the number of columns.In the resources view (
viewType: "Resources"), it specifies the timeline length displayed on the vertical axis. This option is supported since version 2023.4.5739.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
days: 14,
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
days: 14,
// ...
};React
<DayPilotCalendar
days={14}
{/* ... */}
/>Vue
<DayPilotCalendar
:days="14"
<!-- ... -->
/>See Also
Days View [doc.daypilot.org]
Resources View [doc.daypilot.org]
DayPilot.Calendar.visibleStart()
DayPilot.Calendar.visibleEnd()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot