The useEventBoxes property (string) sets how task boxes are aligned with timeline cells in the Gantt chart.
DayPilot.Gantt.useEventBoxes"Always" - task boxes are aligned with timeline cells.
"ShortEventsOnly" - task boxes are aligned with cells for tasks shorter than one cell.
"Never" - task boxes are not used.
"Always"When task boxes are used, the task start and end are aligned with the cells (time slots). The real task length is then indicated by the duration bar.
JavaScript
const gantt = new DayPilot.Gantt("dp", {
useEventBoxes: "ShortEventsOnly",
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
useEventBoxes: "ShortEventsOnly",
// ...
};React
<DayPilotGantt
useEventBoxes="ShortEventsOnly"
{/* ... */}
/>Vue
<DayPilotGantt
useEventBoxes="ShortEventsOnly"
<!-- ... -->
/>