DayPilot.Month.viewType

The viewType property (string) determines whether the monthly calendar displays the full month or a custom number of weeks.

Declaration

DayPilot.Month.viewType

Possible Values

  • "Month" - displays the full month.

  • "Weeks" - displays the number of weeks specified by DayPilot.Month.weeks.

Default Value

"Month"

Notes

When viewType is set to "Weeks", configure DayPilot.Month.weeks to control how many weeks are visible.

Examples

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"
  <!-- ... -->
/>

See Also

DayPilot.Month.weeks

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript