The year property (number) sets the year displayed in the first month table of the Navigator. Use an integer value.
DayPilot.Navigator.yearThis property is only used if DayPilot.Navigator.startDate is null.
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"
<!-- ... -->
/>