The cellWidthSpec property (string) sets the grid cell width mode of the JavaScript Scheduler.
DayPilot.Scheduler.cellWidthSpec"Fixed" uses the width specified by the cellWidth property.
"Auto" calculates the cell width automatically so the total grid width matches the control width.
"Fixed"Use "Fixed" when you need an explicit pixel width for each cell. Use "Auto" when the Scheduler should distribute the available width automatically.
JavaScript
const dp = new DayPilot.Scheduler("dp", {
cellWidthSpec: "Auto",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
cellWidthSpec: "Auto",
// ...
};React
<DayPilotScheduler
cellWidthSpec="Auto"
{/* ... */}
/>Vue
<DayPilotScheduler
cellWidthSpec="Auto"
<!-- ... -->
/>