The useEventBoxes property (string) sets how the JavaScript Calendar component aligns event boxes with grid cells.
DayPilot.Calendar.useEventBoxes"Always" - aligns all event boxes with the grid cells.
"Never" - displays event boxes using the exact event start and end positions.
"ShortEventsOnly" - aligns only events shorter than DayPilot.Calendar.cellDuration with the grid cells. (DayPilot Pro only)
"Always"With the default "Always" mode, short events fill the whole grid cell even when their real duration is shorter.
When you switch to "Never", consider disabling snap-to-grid to keep drag-and-drop behavior consistent with the rendered event boxes.
JavaScript
const calendar = new DayPilot.Calendar("calendar", {
useEventBoxes: "Never",
// ...
});
calendar.init();Angular
<daypilot-calendar [config]="config"></daypilot-calendar>config: DayPilot.CalendarConfig = {
useEventBoxes: "Never",
// ...
};React
<DayPilotCalendar
useEventBoxes="Never"
{/* ... */}
/>Vue
<DayPilotCalendar
:useEventBoxes="'Never'"
<!-- ... -->
/>DayPilot.Calendar.cellDuration
Exact Event Duration [doc.daypilot.org]
Availability of this API item in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript |
Lite does not support: ShortEventsOnly