DayPilot.Calendar.viewType

The viewType property (string) sets the view type of the JavaScript Calendar component.

Declaration

DayPilot.Calendar.viewType

Possible Values

Default Value

"Days"

Notes

The "Days" view uses DayPilot.Calendar.days to determine how many consecutive days are visible.

Examples

JavaScript

const calendar = new DayPilot.Calendar("dp", {
  viewType: "Week",
  // ...
});
calendar.init();

Angular

<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
  viewType: "Week",
  // ...
};

React

<DayPilotCalendar
  viewType="Week"
  {/* ... */}
/>

Vue

<DayPilotCalendar
  :viewType="'Week'"
  <!-- ... -->
/>

See Also

DayPilot.Calendar.startDate

DayPilot.Calendar.days

DayPilot.Calendar.visibleStart()

DayPilot.Calendar.visibleEnd()

Resource-Scheduling Calendar [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript