DayPilot.Month.weekStarts

The weekStarts property (number | "Auto") specifies the first day of week in the JavaScript Monthly Calendar component.

Declaration

DayPilot.Month.weekStarts

Possible Values

  • "Auto" - determines the first day of week using the current DayPilot.Month.locale.

  • number - day of week number (0 = Sunday, 1 = Monday, 2 = Tuesday, 3 = Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday).

Default Value

"Auto"

Examples

JavaScript

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

Angular

<daypilot-month [config]="config"></daypilot-month>
config: DayPilot.MonthConfig = {
  weekStarts: 1,
  // ...
};

React

<DayPilotMonth
  weekStarts={1}
  {/* ... */}
/>

Vue

<DayPilotMonth
  :weekStarts="1"
  <!-- ... -->
/>

See Also

DayPilot.Month.locale

First Day of Week [doc.daypilot.org]

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript