ProSchedulerSign in

Timeline · Configuring the view

Day, week, month and year

The length select switches the span; day uses hour columns, year uses month columns.

Live demo

Switch to Day · Switch to Year

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

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

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

About this demo

The length select switches the span; day uses hour columns, year uses month columns.

Things to try

  • Switch to Day
  • Switch to Year

The props behind it are explained in Views.

Use ProScheduler in your project