DayPilot.Scheduler.cellWidth

The cellWidth property (number) specifies the cell width in pixels. Used if cellWidthSpec is set to "Fixed".

Declaration

DayPilot.Scheduler.cellWidth

Default Value

20

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  cellWidthSpec: "Fixed",
  cellWidth: 40,
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  cellWidthSpec: "Fixed",
  cellWidth: 40,
  // ...
};

React

<DayPilotScheduler
  cellWidthSpec="Fixed"
  cellWidth={40}
  {/* ... */}
/>

Vue

<DayPilotScheduler
  cellWidthSpec="Fixed"
  :cellWidth="40"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.cellDuration

DayPilot.Scheduler.cellWidthSpec

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript