DayPilot.Scheduler.scale

The scale property (string) sets the JavaScript Scheduler grid cell size (duration). The Scheduler scale can be one of the predefined values or a custom number of minutes.

Declaration

DayPilot.Scheduler.scale

Possible Values

  • "CellDuration" - uses the number of minutes specified by the DayPilot.Scheduler.cellDuration property.

  • "Manual" - disables automatic timeline generation and uses the cells defined by DayPilot.Scheduler.timeline.

  • "Minute" - uses one minute per grid cell.

  • "Hour" - uses one hour per grid cell.

  • "Day" - uses one day per grid cell.

  • "Week" - uses one week per grid cell.

  • "Month" - uses one month per grid cell.

  • "Year" - uses one year per grid cell.

Default Value

"CellDuration"

Examples

JavaScript

const dp = new DayPilot.Scheduler("dp", {
  scale: "Day",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  scale: "Day",
  // ...
};

React

<DayPilotScheduler
  scale="Day"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  scale="Day"
  <!-- ... -->
/>

See Also

Scheduler Scale [doc.daypilot.org]

DayPilot.Scheduler.cellDuration

DayPilot.Scheduler.timeline

DayPilot.Scheduler.timeHeaders

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript

Lite does not support: Manual, Month, Year