The weekStarts property (number | "Auto") specifies the first day of week in the JavaScript Monthly Calendar component.
Declaration
DayPilot.Month.weekStartsPossible 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
First Day of Week [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot