DayPilot.Scheduler.cellWidthSpec

The cellWidthSpec property (string) sets the grid cell width mode of the JavaScript Scheduler.

Declaration

DayPilot.Scheduler.cellWidthSpec

Possible 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

DayPilot.Scheduler.cellWidth

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript