DayPilot.Scheduler.days

The days property (number) sets the visible time range of the JavaScript Scheduler in days. Use startDate to set the first visible date.

Declaration

DayPilot.Scheduler.days

Default Value

1

Notes

If showNonBusiness is set to false and businessWeekends is set to false, the resulting timeline may be shorter than the specified days value because non-business days are removed after the timeline is generated.

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  days: 30,
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  days: 30,
  // ...
};

React

<DayPilotScheduler
  days={30}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  :days="30"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.cellDuration

DayPilot.Scheduler.cellGroupBy

DayPilot.Scheduler.startDate

DayPilot.Scheduler.scale

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript