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.
Declaration
DayPilot.Gantt.weekStartsPossible Values
"Auto"- uses the first day of week defined by the current locale0(Sunday)1(Monday)2(Tuesday)3(Wednesday)4(Thursday)5(Friday)6(Saturday)
Default Value
"Auto"Examples
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"
<!-- ... -->
/>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