The cellWidthSpec property (string) sets the grid cell width mode of the JavaScript Scheduler.
Declaration
DayPilot.Scheduler.cellWidthSpecPossible Values
"Fixed"uses the width specified by the cellWidth property."Auto"calculates the cell width automatically so the total grid width matches the control width.
Default Value
"Fixed"Notes
Use "Fixed" when you need an explicit pixel width for each cell. Use "Auto" when the Scheduler should distribute the available width automatically.
Examples
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"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot