ProSchedulerSign in

Agenda · Setting up

Week numbers

weekNumbers on the calendar adds a column of week numbers at the start of each row.

Live demo

Page to next month

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

export function CalendarWeekNumbersDemo() {
  const { events, handlers } = useEvents(() => studioEvents())
  return (
    <ProScheduler
      data={events}
      resources={studioResources}
      view={{ calendar: { type: "month", weekNumbers: true, labels: true } }}
      height={620}
      {...handlers}
    />
  )
}

About this demo

weekNumbers on the calendar adds a column of week numbers at the start of each row.

Things to try

  • Page to next month

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

Use ProScheduler in your project