DayPilot.Navigator.showWeekNumbers

The showWeekNumbers property (boolean) determines whether week numbers should be displayed in the Navigator.

Declaration

DayPilot.Navigator.showWeekNumbers

Default Value

false

Notes

If enabled, the week numbers are displayed on the left side of the Navigator in the first column. They are calculated using weekNumberAlgorithm.

Examples

JavaScript

const dp = new DayPilot.Navigator("dp", {
  showWeekNumbers: true,
  // ...
});
dp.init();

Angular

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

React

<DayPilotNavigator
  showWeekNumbers={true}
  {/* ... */}
/>

Vue

<DayPilotNavigator
  :showWeekNumbers="true"
  <!-- ... -->
/>

See Also

DayPilot.Navigator.weekNumberAlgorithm

DayPilot.Navigator Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript