DayPilot.Calendar.days

The days property (number) sets the number of days that will be displayed in the JavaScript Calendar.

Declaration

DayPilot.Calendar.days

Default Value

1

Notes

  • In the days view (viewType: "Days"), it specifies the number of columns.

  • In the resources view (viewType: "Resources"), it specifies the timeline length displayed on the vertical axis. This option is supported since version 2023.4.5739.

Examples

JavaScript

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

Angular

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

React

<DayPilotCalendar
  days={14}
  {/* ... */}
/>

Vue

<DayPilotCalendar
  :days="14"
  <!-- ... -->
/>

See Also

Days View [doc.daypilot.org]

Resources View [doc.daypilot.org]

DayPilot.Calendar.startDate

DayPilot.Calendar.viewType

DayPilot.Calendar.visibleStart()

DayPilot.Calendar.visibleEnd()

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript