The showCurrentTimeOffset property (number) sets the offset, in minutes, applied to the current time indicator in the JavaScript Calendar component.
Declaration
DayPilot.Calendar.showCurrentTimeOffsetDefault Value
0Notes
This setting is used together with DayPilot.Calendar.showCurrentTime.
A value of 60 shifts the indicator by one hour.
Examples
JavaScript
const calendar = new DayPilot.Calendar("dp", {
showCurrentTimeOffset: 60,
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
showCurrentTimeOffset: 60,
// ...
};React
<DayPilotCalendar
showCurrentTimeOffset={60}
{/* ... */}
/>Vue
<DayPilotCalendar
:showCurrentTimeOffset="60"
<!-- ... -->
/>See Also
DayPilot.Calendar.showCurrentTime
DayPilot.Calendar.showCurrentTimeMode
Highlighting Current Time [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot