ProSchedulerSign in

Agenda · Setting up

Day, week, month and year

The header's length select switches the span without touching the view prop.

Live demo

Switch to Year · Page back a month

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

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

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      // The default header's length select switches day / week / month / year.
      view={{ agenda: { type: "week", size: 1 } }}
      height={560}
      {...handlers}
    />
  )
}

About this demo

The header's length select switches the span without touching the view prop.

Things to try

  • Switch to Year
  • Page back a month

The props behind it are explained in Views.

Use ProScheduler in your project