The cellWidthSpec property (string) sets the Gantt cell width mode.
Declaration
DayPilot.Gantt.cellWidthSpecPossible Values
"Fixed"- uses a fixed cell width specified by DayPilot.Gantt.cellWidth."Auto"- calculates the cell width automatically so the total grid width matches the control width.
Default Value
"Fixed"Notes
This setting determines whether the timeline grid uses a fixed cell width or recalculates it to fit the available control width.
Examples
JavaScript
const gantt = new DayPilot.Gantt("dp", {
cellWidthSpec: "Auto",
// ...
});
gantt.init();Angular
<daypilot-gantt [config]="config"></daypilot-gantt>config: DayPilot.GanttConfig = {
cellWidthSpec: "Auto",
// ...
};React
<DayPilotGantt
cellWidthSpec="Auto"
{/* ... */}
/>Vue
<DayPilotGantt
cellWidthSpec="Auto"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot