The cellWidthSpec property (string) sets the Gantt cell width mode.
DayPilot.Gantt.cellWidthSpec"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.
"Fixed"This setting determines whether the timeline grid uses a fixed cell width or recalculates it to fit the available control width.
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"
<!-- ... -->
/>