DayPilot.Scheduler.weekStarts

The weekStarts property ("Auto" | number) determines the first day of the week in the JavaScript Scheduler.

By default, "Auto" uses the week start defined by the current DayPilot.Scheduler.locale setting.

Declaration

DayPilot.Scheduler.weekStarts

Possible Values

  • "Auto" - uses the week start defined by the current DayPilot.Scheduler.locale.

  • 0 - Sunday.

  • 1 - Monday.

  • 2 - Tuesday.

  • 3 - Wednesday.

  • 4 - Thursday.

  • 5 - Friday.

  • 6 - Saturday.

Default Value

"Auto"

Examples

JavaScript

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

Angular

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

React

<DayPilotScheduler
  weekStarts={0}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  :weekStarts="0"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.locale

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript