DayPilot.Scheduler.viewType

The viewType property (string) determines which data source is used for the Scheduler vertical axis.

Declaration

DayPilot.Scheduler.viewType

Possible 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

DayPilot.Scheduler.days

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript