The paddingDays property (number) adds the specified number of days to the start and end of the automatically-generated timeline.
Available since 2026.2.6899.
Declaration
DayPilot.Gantt.paddingDaysDefault Value
0Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
paddingDays: 4,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
paddingDays: 4,
// ...
};React
<DayPilotGantt
paddingDays={4}
{/* ... */}
/>Vue
<DayPilotGantt
:paddingDays="4"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot