The hourWidth property (number) sets the width of the time header column (in pixels) of the JavaScript Calendar component.

Declaration

DayPilot.Calendar.hourWidth

Default Value

60

Grouped Headers

For timeHeaders, this value is the default width of each level that omits width. An explicit per-level width takes precedence; the total header area is the sum of all level widths.

Examples

JavaScript

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

Angular

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

React

<DayPilotCalendar
  hourWidth={50}
/>

Vue

<DayPilotCalendar
  :hourWidth="50"
/>

See Also

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript