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