DayPilot.Gantt.taskHeight

The taskHeight property (number) sets the height of task boxes in the Gantt Chart component, in pixels. It also affects the row height, which is derived from the task box height.

Declaration

DayPilot.Gantt.taskHeight

Default Value

25

Notes

Changing taskHeight changes the visual height of task boxes and the row height that is derived from them.

Examples

JavaScript

const gantt = new DayPilot.Gantt("dp", {
  taskHeight: 30,
  // ...
});
gantt.init();

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  taskHeight: 30,
  // ...
};

React

<DayPilotGantt
  taskHeight={30}
  {/* ... */}
/>

Vue

<DayPilotGantt
  :taskHeight="30"
  <!-- ... -->
/>

See Also

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript