DayPilot.Gantt.cellWidth

The cellWidth property (number) sets the cell width in pixels when DayPilot.Gantt.cellWidthSpec is set to "Fixed".

Declaration

DayPilot.Gantt.cellWidth

Default Value

40

Examples

JavaScript

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

Angular

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

React

<DayPilotGantt
  cellWidthSpec="Fixed"
  cellWidth={30}
  {/* ... */}
/>

Vue

<DayPilotGantt
  cellWidthSpec="Fixed"
  :cellWidth="30"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.cellWidthSpec

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript