DayPilot.Gantt.weekStarts

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.weekStarts

Possible Values

  • "Auto" - uses the first day of week defined by the current locale

  • (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]

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript