DayPilot.Calendar.showCurrentTimeMode

The showCurrentTimeMode property (string) sets the current time indicator mode used by the calendar.

Declaration

DayPilot.Calendar.showCurrentTimeMode

Possible Values

  • "Day" - the indicator is displayed only in the column with today's date.

  • "Full" - the indicator is displayed in all columns.

Default Value

"Day"

Notes

Use this property together with DayPilot.Calendar.showCurrentTime to control how widely the current time indicator is displayed.

Examples

JavaScript

const calendar = new DayPilot.Calendar("dp", {
  showCurrentTimeMode: "Full",
  // ...
});
calendar.init();

Angular

<daypilot-calendar [config]="config"></daypilot-calendar>
config: DayPilot.CalendarConfig = {
  showCurrentTimeMode: "Full",
  // ...
};

React

<DayPilotCalendar
  showCurrentTimeMode="Full"
  {/* ... */}
/>

Vue

<DayPilotCalendar
  showCurrentTimeMode="Full"
  <!-- ... -->
/>

See Also

DayPilot.Calendar.showCurrentTime

DayPilot.Calendar.showCurrentTimeOffset

Highlighting Current Time [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript