The timeHeaderCellDuration property (number) sets the duration of time header cells, in minutes, in the JavaScript Calendar component.

Declaration

DayPilot.Calendar.timeHeaderCellDuration

Possible Values

  • "Auto" - uses 60 minutes for DayPilot.Calendar.scale values smaller than one hour; otherwise it matches the scale unit.

  • number - uses the specified number of minutes.

Default Value

"Auto"

Notes

This property controls the default time headers when timeHeaders is omitted. Explicit grouped headers use their own groupBy and format. With a manual, filtered or callback-customized timeline and "Auto", default time headers align to the retained time cells.

Use an explicit numeric value when you need the time header grouping to differ from the underlying grid cell size.

Examples

JavaScript

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

Angular

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

React

<DayPilotCalendar
  timeHeaderCellDuration={30}
/>

Vue

<DayPilotCalendar
  :timeHeaderCellDuration="30"
/>

See Also

DayPilot.Calendar.scale

Grouped Time Headers [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript