ProSchedulerSign in

Scheduler · Setting up

Week view

The classic calendar week: seven day columns, a current-time line, and moves and resizes that snap to 15 minutes.

Live demo

Move an event to another day · Resize from the bottom edge · Switch the span to Day or Month

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

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

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{
        scheduler: {
          type: "week",
          startTime: "07:00",
          endTime: "20:00",
          timeCellStep: 30,
          dragTimeStep: 15,
          currentTimeIndicator: true,
        },
      }}
      height={620}
      {...handlers}
    />
  )
}

About this demo

The classic calendar week: seven day columns, a current-time line, and moves and resizes that snap to 15 minutes.

Things to try

  • Move an event to another day
  • Resize from the bottom edge
  • Switch the span to Day or Month

The props behind it are explained in Views.

Use ProScheduler in your project