ProSchedulerSign in

Timeline · Setting up

Time grid vs timeline

The same week of sessions two ways. Use the switcher to compare a people-first timeline with a time-first grid.

Live demo

Switch to Scheduler · Move an event there and switch back

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

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

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      // Same data, two layouts: days across with hours down, or people down
      // with days across. Use the switcher in the header.
      view={{
        scheduler: { type: "week", startTime: "07:00", endTime: "20:00" },
        timeline: { type: "week", resolutionHorizontal: "day" },
      }}
      defaultView="timeline"
      height={560}
      {...handlers}
    />
  )
}

About this demo

The same week of sessions two ways. Use the switcher to compare a people-first timeline with a time-first grid.

Things to try

  • Switch to Scheduler
  • Move an event there and switch back

The props behind it are explained in Views.

Use ProScheduler in your project