DayPilot.Calendar.scale

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

To set the unit of the time headers displayed on the left side on the Calendar, use the timeHeaderCellDuration property.

Available since 2023.4.5838.

Declaration

DayPilot.Calendar.scale (string)

Possible Values

  • "CellDuration"

  • "Minute"

  • "Hour"

  • "Day"

  • "Week"

The time unit values ("Minute", "Hour", "Day", "Week") apply the respective time unit.

The "CellDuration" value applies the number of minutes specified using the cellDuration property as a time unit.

Default Value

The default value is "CellDuration".

Example

Calendar config:

{
  scale: "Day",
  // ...
}