The weekStarts property ("Auto" | number) determines the first day of week used by the date navigator component.
Declaration
DayPilot.Navigator.weekStartsPossible 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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot