DayPilot.Month.weeks

The weeks property (number) sets the number of weeks displayed by the monthly calendar in the weeks view.

Declaration

DayPilot.Month.weeks

Default Value

1

Notes

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]

DayPilot.Month.viewType

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript