The viewType property (string) determines whether the monthly calendar displays the full month or a custom number of weeks.
DayPilot.Month.viewType"Month" - displays the full month.
"Weeks" - displays the number of weeks specified by DayPilot.Month.weeks.
"Month"When viewType is set to "Weeks", configure DayPilot.Month.weeks to control how many weeks are visible.
JavaScript
const dp = new DayPilot.Month("dp", {
viewType: "Weeks",
weeks: 2,
// ...
});
dp.init();Angular
<daypilot-month [config]="config"></daypilot-month>config: DayPilot.MonthConfig = {
viewType: "Weeks",
weeks: 2,
// ...
};React
<DayPilotMonth
viewType="Weeks"
weeks={2}
{/* ... */}
/>Vue
<DayPilotMonth
viewType="Weeks"
:weeks="2"
<!-- ... -->
/>