ProSchedulerSign in

Scheduler · Setting up

Custom day range

size multiplies a view's span: type: "day", size: 3 shows three days, and the header's arrows step three days at a time.

Live demo

Step forward with the arrow · Drag an event across the three days

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

export function ThreeDayDemo() {
  const { events, handlers } = useEvents(studioSessions)

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      // A custom span: three days per page. Prev/next step three days at a time.
      view={{ scheduler: { type: "day", size: 3, startTime: "07:00", endTime: "20:00" } }}
      height={600}
      {...handlers}
    />
  )
}

About this demo

size multiplies a view's span: type: "day", size: 3 shows three days, and the header's arrows step three days at a time.

Things to try

  • Step forward with the arrow
  • Drag an event across the three days

The props behind it are explained in Views.

Use ProScheduler in your project