DayPilot.Gantt.height

The height property (number) sets the height of the Gantt viewport, excluding the header.

Declaration

DayPilot.Gantt.height

Default Value

300

Notes

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

DayPilot.Gantt.heightSpec

DayPilot.Gantt.setHeight()

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript