The showMonths property (number) sets the number of months visible in the date picker component.
Declaration
DayPilot.Navigator.showMonthsDefault Value
1Notes
Set this property to a value greater than 1 to display multiple months at the same time.
Examples
JavaScript
const dp = new DayPilot.Navigator("dp", {
showMonths: 3,
// ...
});
dp.init();Angular
<daypilot-navigator [config]="config"></daypilot-navigator>config: DayPilot.NavigatorConfig = {
showMonths: 3,
// ...
};React
<DayPilotNavigator
showMonths={3}
{/* ... */}
/>Vue
<DayPilotNavigator
:showMonths="3"
<!-- ... -->
/>See Also
DayPilot.Navigator.orientation
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot