The height property (number) sets the height of the Gantt viewport, excluding the header.
Declaration
DayPilot.Gantt.heightDefault Value
300Notes
This value is used when DayPilot.Gantt.heightSpec is set to "Fixed" or "Max".
Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
heightSpec: "Fixed",
height: 200,
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
heightSpec: "Fixed",
height: 200,
// ...
};React
<DayPilotGantt
heightSpec="Fixed"
height={200}
{/* ... */}
/>Vue
<DayPilotGantt
heightSpec="Fixed"
:height="200"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot