This page lists the public API that SuperScheduler 1.2.1 implements: the React components, every option with its type and default grouped by area, the callbacks with their arguments and cancel or async support, the control's methods, the Pro subpath modules and the Lite API. Legacy compatibility members are listed separately under Reserved APIs: they are not in the published type declarations, so TypeScript rejects them, and they do nothing.
Verified against v1.2.1 · reviewed October 11, 2026.md
On this page
This reference covers the API used throughout these guides, as implemented in version 1.2.1. Everything except the Lite API section belongs to SuperScheduler Pro (super-scheduler). Defaults are the values the control uses when you omit an option; "none" means the option has no value until you set one. The guides explain how to combine these pieces; the examples show them in working applications.
A few conventions hold everywhere:
DateInput is SuperScheduler.Date | string. Strings are civil ISO 8601 values with seconds ('2026-10-01T14:00:00') or dates ('2026-10-01'). Event ends are exclusive.
Resource, event and link ids are string | number and compared strictly: 1 and '1' are different.
Options are props of SuperSchedulerComponent, keys of control.update(options) and live properties of the control.
Handlers run with this set to the control. Their return values are ignored, and an async handler is not awaited: use the async and loaded() protocol where it exists.
Every entry ships ESM, CommonJS and type declarations. React 18.2 or later, or 19, is a peer dependency (React DOM too for Pro); there are no runtime dependencies. All modules can be imported on a server without a DOM.
The exports map and these published declarations define the supported 1.x contract: patch and minor releases keep its signatures and behavior. Deep imports into src, dist/chunks or private fields are outside it.
SuperSchedulerComponent hosts one control. Its props (SchedulerProps) are all options and handlers below plus controlRef. It renders an unstyled <div>, has no className, style or id props, and forwards to control.update() only the props whose identity changed since the last render; a prop that disappears goes back to its default.
Member
Type
Notes
ref.current.control
SuperScheduler.Scheduler
Assigned on mount; after unmount it is the disposed control
controlRef
MutableRefObject<Scheduler | null> or (control) => void
Ref objects are set on mount and cleared on unmount; functions are called with the control on mount only
useSchedulerControl()
{ controlRef, control }
control is React state: null until mount, then the control, null after unmount
The component from super-scheduler/react-render accepts the same props plus renderEvent, renderCell, renderRowHeader, renderTimeHeader, renderArea, renderCorner, eventHover, the onBefore*DomAdd and onBefore*DomRemove handlers, and renderOptions (see react-render).
src/control-access.tsxtsx
import { useEffect, useRef } from'react'import { SuperScheduler, SuperSchedulerComponent, useSchedulerControl } from'super-scheduler'import { useScheduler } from'super-scheduler/hooks'constCONFIG= { startDate:'2026-10-01', days:31, scale:'Day',} satisfiesSuperScheduler.SchedulerConfig// 1. A class ref: `ref.current.control` exists after mount.exportfunctionWithRef() {constref=useRef<SuperSchedulerComponent>(null)useEffect(() =>ref.current?.control.scrollTo('2026-10-15',true,'middle'), [])return <SuperSchedulerComponentref={ref} {...CONFIG} />}// 2. The control as React state: null until mount, then the live control.exportfunctionWithHook() {const { controlRef,control } =useSchedulerControl()useEffect(() =>control?.scrollTo(SuperScheduler.Date.today()), [control])return <SuperSchedulerComponentcontrolRef={controlRef} {...CONFIG} />}// 3. Control plus tracked state topics, published after changes settle.exportfunctionWithState() {const { controlRef,state } =useScheduler({ track: ['zoom','viewport'] })return ( <> <p> {state.viewport ===undefined?'':`${state.viewport.start.toString('d MMM')} to ${state.viewport.end.toString('d MMM')}`} </p> <SuperSchedulerComponentcontrolRef={controlRef} {...CONFIG} /> </> )}// 4. Imperative, without React: init() before use, dispose() on teardown.exportfunctionmount(host:HTMLElement): () =>void {constcontrol=newSuperScheduler.Scheduler(host,CONFIG)control.init()return () =>control.dispose()}
Before and after.onEventMove runs before a change and can cancel it; onEventMoved runs after it. Most pairs follow this pattern.
Cancel. Handlers whose arguments have preventDefault() can cancel: the click family, onEventSelect, onEventDelete, onEventMove, onEventResize, onTimeRangeSelect, onTimeRangeClick and its double and right variants, onRectangleSelect, onRowClick and variants, onRowSelect, onResourceExpand, onResourceCollapse, onTimeHeaderClick, onTimeHeaderRightClick, onGridMouseDown, onKeyDown, onKeyboardFocusChange and onLinkClick. Cancelling a click also skips its "-ed" handler and the follow-up action.
Async confirmation.onEventMove and onEventResize support args.async = true and a later args.loaded(); preventDefault() before loaded() cancels, and newStart, newEnd and newResource set before loaded() are applied.
Steering.onEventMoving, onEventResizing, onTimeRangeSelecting and onRectangleSelecting run on every shadow change; assign args.allowed, args.start, args.end, args.cssClass or args.html.
{ e, div, control, originalEvent, ctrl, shift, meta }
first
onEventDoubleClick, onEventDoubleClicked
{ e, originalEvent }
first
onEventRightClick, onEventRightClicked
{ e, div, originalEvent }
first
onEventSelect, onEventSelected
{ e, selected, ctrl, meta }
first
onEventDelete, onEventDeleted
{ e, control }
first
onEventMouseEnter, onEventMouseLeave
{ e, div }
no
onEventFilter
{ e, filterParam, visible }; set visible = false
no
onEventsChange
{ events, changed, removed, reason }, reason one of 'move', 'resize', 'create', 'remove', 'update', 'api', 'history', 'load'
no
e is a SuperScheduler.Event: e.data is the data object, and e.id(), e.start(), e.end(), e.text(), e.resource() and e.duration() read it. On a wrapper the control created, e.start(value), e.end(value), e.text(value) and e.resource(value) write to a draft copy and leave your data object unchanged; commit the draft with control.events.update(e).
The control is ref.current.control, the value of controlRef, args.control in most handlers, or new SuperScheduler.Scheduler(element, options) followed by init().
Moves through the levels in order of time density, so a positive delta always zooms in whatever the order of zoomLevels; without levels, a factor of 1.6 per step
createHistory(options?) returns a history to pass as history={history} or in extensions. Options: limit (50), record (['move', 'resize']), keys ('root', 'document' or false; default 'root'), equals, fields, apply ('control' or a function for controlled events) and labels. Methods: undo(), redo(), clear(), push({ label, undo, redo }), record({ ops, control }), batch(label, run), revert(eventId), subscribe(listener); properties canUndo, canRedo, undoLabel, redoLabel. Loads and rejected changes are not recorded.
createMinimap(control, container, options?) and the React component <SchedulerMinimap control={control} />. Options: series (default eventDensity(control)), height (28), peak ('relative' or 'absolute' with max), tone, marks (today, months, past, all true), range and labels. The widget has update(), refresh() and dispose().
getViewState(control, include?) returns a JSON-safe state (zoom, scroll, density, collapsed, columns); applyViewState(control, state, { animate, when, timeout }) (when is 'now' or 'rows') returns a promise of boolean.
createRangeLoader({ load, chunkDays (7), prefetch (1), cacheChunks (26), skeleton (true), onError }) returns a loader with reload(range?), clear() and loading. load({ start, end, signal }) returns the events overlapping [start, end). With controlled events, apply each onEventsChange proposal back to your props: it carries only newly fetched events and explicit removals, keeps local edits and deletions, and accumulates responses that arrive before your next update. An explicit reload() refreshes the requested chunks from the server.
useScheduler({ track }) returns { controlRef, control, state } for the topics 'events', 'selection', 'zoom', 'viewport' and 'history'. useSchedulerState(control, topic), subscribeScheduler(control, topic, listener) (returns an unsubscribe function) and getSchedulerSnapshot(control, topic) give the same state outside the hook. Viewport state publishes after scrolling settles. The selection topic follows control.multiselect, so it also reports selections made with the pointer.
SuperSchedulerComponent with the React content props. HTML or text fallback paints first; React content replaces it after the interaction ends. renderOptions.retain defaults to the smaller of 2,000 or twice the mounted items; sliceMs to 8.
A Tailwind CSS v3 preset: presets: [require('super-scheduler/tailwind')]. It adds super-scheduler colors, radii, shadows and transitions mapped to the CSS tokens.
generateDataset(options) and generateScenario(id, overrides?) create deterministic hotel-style data (rows and days required, seed, start in ticks, density, events, times). toSuperSchedulerData(dataset) returns { resources, events }, which you can pass to the scheduler without a type assertion. Scenarios: S1 (120 rows, 730 days), S2 (1,000 rows, 730 days), S3 (5,000 rows, 1,500 days) and their dense variants. Data starts on 2026-01-01 by default.
DOM-free helpers shared by the engine: SchedulerDate, Duration, registerLocale, resolveLocale, formatTicks, parseTicks, ticksFromParts(year, month, day, ...), partsOf, formatIso, parseIso, todayTicks, nowTicks, the MS_PER_* constants, and timeline, index and layout utilities. Use it for charts and tools next to the scheduler.
super-scheduler-lite is a virtualized timeline of flat resources with day, hour, minute or custom cells, where people can move and resize events and select time ranges with a mouse or a pen once those gestures are turned on. Options it does not implement throw SuperScheduler Lite: unsupported option "...", in every build. Lite is free for noncommercial use; commercial use requires Pro (see the license).
({ control, e: { data }, newStart, newEnd, newResource, ctrl, shift, meta, preventDefault }) => void; cancelable, may change newStart, newEnd and newResource
none
onEventMoved
the same object, after the move was applied
none
onEventResize
({ control, e: { data }, newStart, newEnd, what, preventDefault }) => void, what is 'start' or 'end'; cancelable, may change newStart and newEnd
none
onEventResized
the same object, after the resize was applied
none
onTimeRangeSelect
({ control, start, end, resource, origin, preventDefault }) => void, origin is 'click' or 'drag'; cancelable
none
onTimeRangeSelected
the same object, unless the selection was canceled
none
controlRef
ref object or (control | null) => void
none
Moves snap by whole cells and keep the time inside the cell; resizes snap the dragged edge to cell boundaries. Gestures use a mouse or a pen (touch keeps scrolling), Escape cancels a drag, and the grid scrolls by itself near its edges. 'Update' and 'Notify' behave alike in Lite: it draws the change from its own copy and never modifies your objects. A click on an empty cell calls onTimeRangeClick, then, when selection is on, selects the cell.
The control (ref.current.control) has init(), update(options), dispose(), disposed(), scrollTo(date), scrollToResource(id), visibleStart(), visibleEnd() and clearSelection(). The namespace has SuperScheduler.Date and SuperScheduler.Scheduler. Week, month and year scales, timeHeaders and resource children, frozen, split and columns are rejected. Cells carry data-row and data-cell attributes; day cells also keep data-day. Theme tokens on .super-scheduler-lite: --super-scheduler-background, -text, -border, -header, -event, -focus and -selection. See Quick start with Lite and Migrating from Lite to Pro.
Reserved members are legacy compatibility scaffolding, not supported or experimental features. In 1.0.0 they are excluded from the published type declarations, so TypeScript reports them as errors, as it does for unsupported handling values such as 'CallBack', 'PostBack' and 'Edit' and for viewType: 'Days' or 'Gantt'. Remove them when you upgrade from 0.1. Untyped JavaScript that still passes them gets no feature: they do nothing or return empty values, and development builds print super-scheduler: <feature> is not supported yet once. Where you need these workflows, use application-owned forms, your own data fetching and range loading instead.
The 'CallBack' and 'PostBack' menu item actions, the BubbleonDomAdd and onDomRemove handlers and setting Row.column(i).html(value) are still in the declarations. They warn once in development builds and have no effect of their own; a menu item's onClick still runs.
treeAnimation is accepted, but the expand animation is never played.
The onBefore*DomAdd and onBefore*DomRemove handlers, the render* props and eventHover work only with the component from super-scheduler/react-render; the root component warns and ignores them.
Accepted tuning hints, ignored because virtualization is always on and tunes itself: beforeCellRenderCaching, cellSweeping, cellSweepingCacheSize, drawBlankCells, dynamicEventRendering and its margin and cache options, eventUpdateInplaceOptimization, progressiveRowRendering, progressiveRowRenderingPreload and the scrollDelay* options other than scrollDelayDynamic.