The weeks property (number) sets the number of weeks displayed by the monthly calendar in the weeks view.
Declaration
DayPilot.Month.weeksDefault Value
1Notes
This property is used when DayPilot.Month.viewType is set to "Weeks".
Examples
JavaScript
const dp = new DayPilot.Month("dp", {
viewType: "Weeks",
weeks: 6,
// ...
});
dp.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
viewType: "Weeks",
weeks: 6,
// ...
};React
<DayPilotMonth
viewType="Weeks"
weeks={6}
{/* ... */}
/>Vue
<DayPilotMonth
viewType="Weeks"
:weeks="6"
<!-- ... -->
/>See Also
Weeks View [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot