The year property (number) sets the year displayed in the first month table of the Navigator. Use an integer value.
Declaration
DayPilot.Navigator.yearNotes
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot