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.
DayPilot.Scheduler.weekStarts"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.
"Auto"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"
<!-- ... -->
/>