DayPilot.Navigator.year

The year property (number) sets the year displayed in the first month table of the Navigator. Use an integer value.

Declaration

DayPilot.Navigator.year

Notes

This property is only used if DayPilot.Navigator.startDate is null.

Examples

JavaScript

const nav = new DayPilot.Navigator("dp", {
  startDate: null,
  year: 2026,
  // ...
});
nav.init();

Angular

<daypilot-navigator [config]="config"></daypilot-navigator>
config: DayPilot.NavigatorConfig = {
  startDate: null,
  year: 2026,
  // ...
};

React

<DayPilotNavigator
  startDate={null}
  year={2026}
  {/* ... */}
/>

Vue

<DayPilotNavigator
  :startDate="null"
  :year="2026"
  <!-- ... -->
/>

See Also

DayPilot.Navigator.startDate

DayPilot.Navigator Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript