ProSchedulerSign in

Timeline · Resources

Shared events

One booking for three people shows in each of their rows; moving one copy to someone else swaps just that person.

Live demo

Drag the festival shoot from Elin to Gus

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

export function TimelineSharedDemo() {
  const { events, handlers } = useEvents<SchedulerEvent>(() => {
    const month = monthStart()
    const day = (n: number) => new Date(month.getFullYear(), month.getMonth(), month.getDate() + n)
    return [
      ...studioAssignments().slice(0, 8),
      // One booking, three people: the same event in three rows.
      { id: "off", title: "Festival shoot (team)", start: day(24), end: day(27), resource: ["ada", "farah", "elin"], color: "#0f766e" },
    ]
  })

  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{ timeline: { type: "month" } }}
      height={520}
      {...handlers}
    />
  )
}

About this demo

One booking for three people shows in each of their rows; moving one copy to someone else swaps just that person.

Things to try

  • Drag the festival shoot from Elin to Gus

The props behind it are explained in Resources.

Use ProScheduler in your project