ProSchedulerSign in

Scheduler · Setting up

Work week

Monday to Friday, 08:00 to 18:00, fitted to the available height so the whole working day shows without scrolling.

Live demo

Move a Friday event onto Monday · Resize the browser and watch the rows fit

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

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

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{
        scheduler: {
          type: "week",
          startDay: 1, // Monday
          endDay: 5, // Friday
          startTime: "08:00",
          endTime: "18:00",
          fitToHeight: true,
        },
      }}
      height={560}
      {...handlers}
    />
  )
}

About this demo

Monday to Friday, 08:00 to 18:00, fitted to the available height so the whole working day shows without scrolling.

startDay/endDay pick the weekdays and fitToHeight derives the hour height from the space.

Things to try

  • Move a Friday event onto Monday
  • Resize the browser and watch the rows fit

The props behind it are explained in Views.

Use ProScheduler in your project