The weekStarts property determines the first day of week. By default, the JavaScript Gantt Chart uses the "Auto" value which uses the weekStarts value of the current locale. You can use a number to set the first day of week explicitly.
DayPilot.Gantt.weekStarts"Auto" - uses the first day of week defined by the current locale
0 (Sunday)
1 (Monday)
2 (Tuesday)
3 (Wednesday)
4 (Thursday)
5 (Friday)
6 (Saturday)
"Auto"JavaScript
const gantt = new DayPilot.Gantt("dp", {
weekStarts: 0,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
weekStarts: 0,
// ...
};React
<DayPilotGantt
weekStarts={0}
{/* ... */}
/>Vue
<DayPilotGantt
:weekStarts="0"
<!-- ... -->
/>First Day of Week [doc.daypilot.org]