DayPilot.Navigator.weekStarts

The weekStarts property ("Auto" | number) determines the first day of week used by the date navigator component.

Declaration

DayPilot.Navigator.weekStarts

Possible Values

  • "Auto" - uses the value set by the DayPilot.Navigator.locale property.

  • 0 - Sunday.

  • 1 - Monday.

  • 2 - Tuesday.

  • 3 - Wednesday.

  • 4 - Thursday.

  • 5 - Friday.

  • 6 - Saturday.

Default Value

"Auto"

Examples

JavaScript

const nav = new DayPilot.Navigator("dp", {
  weekStarts: 1,
  // ...
});
nav.init();

Angular

<daypilot-navigator [config]="config"></daypilot-navigator>
config: DayPilot.NavigatorConfig = {
  weekStarts: 1,
  // ...
};

React

<DayPilotNavigator
  weekStarts={1}
  {/* ... */}
/>

Vue

<DayPilotNavigator
  :weekStarts="1"
  <!-- ... -->
/>

See Also

DayPilot.Navigator.locale

DayPilot.Locale.weekStarts

DayPilot.Navigator Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript