ProSchedulerSign in

Guides

Migrating from Mobiscroll

ProScheduler borrows its prop vocabulary from Mobiscroll’s React Eventcalendar, so most of an existing setup carries over. This is what maps directly, what is renamed, and which compatibility options require explicit enablement.

Side by side

import { Eventcalendar, localeFr } from "@mobiscroll/react"

<Eventcalendar
  data={events}
  resources={resources}
  view={{ scheduler: { type: "week", startTime: "08:00", endTime: "18:00" } }}
  locale={localeFr}
  dragToMove
  dragToResize
  onEventUpdated={(args) => save(args.event)}
/>
import { ProScheduler, localeFr } from "@andreisaac/pro-scheduler"
import "@andreisaac/pro-scheduler/styles.css"

<ProScheduler
  data={events}
  resources={resources}
  view={{ scheduler: { type: "week", startTime: "08:00", endTime: "18:00" } }}
  locale={localeFr}
  dragToMove
  dragToResize
  onEventUpdated={(event) => save(event)}
/>

What changes

Differences to look for
TopicIn ProScheduler
Time-grid view keyscheduler (not schedule)
Callback argumentsThe event itself, not an args object — (event) => …
Data ownershipAlways controlled: update data from the callbacks, or the change does not stick
Scheduler event rendererrenderSchedulerEvent
StylesOne stylesheet, themed with shadcn/ui design tokens
Recurring invalid / colors rangesDaily, weekly, monthly and yearly rules support RRULE strings, exceptions and anchors. Clock windows accept startTime/endTime or clock-time start/end shorthand; weekday values accept names or numbers, 0 = Sunday
renderResourceFooterTakes no arguments and fills the timeline's bottom-left corner; renderDayFooter adds per-day cells
Validation failuresonEventCreateFailed / onEventUpdateFailed receive { event, reason, invalid, overlapping }
LicenceOne payment per project; no licence key in the bundle

Names that carry over unchanged include data, resources, refDate, selectedDate, dragToCreate, clickToCreate, dragBetweenResources, dragTimeStep, eventDelete, themeVariant, renderHeader, renderResource, renderEventContent, and the onEventCreate(d), onEventUpdate(d), onEventDelete(d), onEventClick, onCellClick, onPageChange and onSelectedDateChange callbacks.

Compatibility options

Bounds, timeline hours, week numbers, recurrence and measured variable event heights are implemented. The React view key is scheduler. Existing callbacks keep their arguments and receive optional trailing interaction context. Dates supplied to renderers remain Date objects.

Defaults preserve controlled data, boolean single-click creation, legacy rule vetoes and exclusive end dates. Enable ruleResolution="specific" for event → resource → global precedence; use generateEventIds and broadcastUnassignedEvents explicitly. Calendar editing requires view.calendar.eventInteraction. Combined layouts require viewMode="combined", and scheduler virtualization requires view.scheduler.virtualScroll.

Existing imperative CRUD emits callbacks directly. Supply { validate: true } to run validation and before hooks. New range queries expand occurrences and use half-open boundaries. refDate remains the navigation date; pageAnchorDate aligns multi-period pages.

Aliases connections, groupBy, rtl and nested timeline resourceReorder are available; explicit native settings win. Use eventDisplay for listing timelines; eventList is deprecated.