The visibleEnd() method returns the end of the last visible day.
Declaration
DayPilot.Navigator.visibleEnd()Parameters
This method has no parameters.
Return Value
Returns a DayPilot.Date object representing the end of the last visible day.
Notes
In most cases, this date is different from the last day of the last visible month.
You can use visibleEnd() together with DayPilot.Navigator.visibleStart() to get the visible range and load free/busy data when the view changes.
Example
const nav = new DayPilot.Navigator("nav", {
// ...
});
nav.init();
// ...
const end = nav.visibleEnd();See Also
DayPilot.Navigator.visibleStart()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot