The viewType property (string) determines which data source is used for the Scheduler vertical axis.
DayPilot.Scheduler.viewType"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.
"Resources"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"
<!-- ... -->
/>