The hourWidth property (number) sets the width of the time header column (in pixels) of the JavaScript Calendar component.
Declaration
DayPilot.Calendar.hourWidthDefault Value
60Examples
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:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot