The viewType property (string) determines which data source is used for the Scheduler vertical axis.
Declaration
DayPilot.Scheduler.viewTypePossible Values
"Resources"uses the resources collection."Days"shows one day (24 hours) per line. The number of lines is determined by the DayPilot.Scheduler.days property."Gantt"creates one row for each event automatically.
Default Value
"Resources"Examples
JavaScript
const dp = new DayPilot.Scheduler("dp", {
viewType: "Days",
// ...
});
dp.init();Angular
<daypilot-scheduler [config]="config"></daypilot-scheduler>config: DayPilot.SchedulerConfig = {
viewType: "Days",
// ...
};React
<DayPilotScheduler
viewType="Days"
{/* ... */}
/>Vue
<DayPilotScheduler
viewType="Days"
<!-- ... -->
/>See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot