DayPilot.Calendar.showCurrentTimeOffset

The showCurrentTimeOffset property (number) sets the offset, in minutes, applied to the current time indicator in the JavaScript Calendar component.

Declaration

DayPilot.Calendar.showCurrentTimeOffset

Default Value

0

Notes

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]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript