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.taskHeightDefault Value
25Notes
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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot