ProSchedulerSign in

Scheduler · Configuring the view

Switch between calendar, scheduler and agenda

Several keys in view give the header a switcher. The calendar carries the agenda below it; defaultView picks the week grid to open on.

Live demo

Switch to Calendar and pick a day · Switch back to the week

Fullscreen
import { ProScheduler } from "@andreisaac/pro-scheduler"
import { studioEvents, studioResources } from "./data/studio"
import { useEvents } from "./kit"

export function SwitchViewsDemo() {
  const { events, handlers } = useEvents(studioEvents)

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{
        calendar: { type: "month" },
        agenda: { type: "day" }, // listed under the calendar
        scheduler: { type: "week", startTime: "07:00", endTime: "20:00" },
      }}
      defaultView="scheduler"
      height={640}
      {...handlers}
    />
  )
}

About this demo

Several keys in view give the header a switcher. The calendar carries the agenda below it; defaultView picks the week grid to open on.

Things to try

  • Switch to Calendar and pick a day
  • Switch back to the week

The props behind it are explained in Views.

Use ProScheduler in your project