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.
DayPilot.Scheduler.scale"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.
"CellDuration"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"
<!-- ... -->
/>Scheduler Scale [doc.daypilot.org]
DayPilot.Scheduler.cellDuration
DayPilot.Scheduler.timeHeaders
Availability of this API item in DayPilot editions:
| Lite | Pro | |
|---|---|---|
| DayPilot for JavaScript |
Lite does not support: Manual, Month, Year