ProSchedulerSign in

Scheduler · Configuring the view

Week numbers

weekNumbers shows the week in the corner above the time gutter: ISO weeks when the locale starts on Monday, weeks counted from January 1st when it starts on Sunday.

Live demo

Page through a few weeks

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

export function SchedulerWeekNumbersDemo() {
  const { events, handlers } = useEvents(() => studioSessions())
  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{ scheduler: { type: "week", weekNumbers: true, startTime: "08:00", endTime: "19:00" } }}
      height={600}
      {...handlers}
    />
  )
}

About this demo

weekNumbers shows the week in the corner above the time gutter: ISO weeks when the locale starts on Monday, weeks counted from January 1st when it starts on Sunday.

Things to try

  • Page through a few weeks

The props behind it are explained in Scales, ranges and zoom.

Use ProScheduler in your project