React UI Components Documentation
The React Scheduler shows appointments in day, week, month, timeline and agenda views, with recurring appointments and resources. This guide adds the React Scheduler (jqxScheduler) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-react-tsx/jqxscheduler 
In a React project (to start one, see Getting started with React), add the package:
npm install jqwidgets-scripts
import JqxScheduler, {
type ISchedulerProps,
jqx
} from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxscheduler';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
jqx.base.css is required. The second file is a theme; pick one of the jqx.*.css files (material, fluent, light, dark and more) and pass its name to the theme prop.
The source of the live Default Functionality demo:
import { useRef, useMemo, useCallback } from 'react';
import JqxScheduler, {
type ISchedulerProps,
jqx
} from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxscheduler';
interface Appointment {
calendar: string;
description: string;
end: Date;
id: string;
location: string;
start: Date;
subject: string;
}
function App() {
const myScheduler = useRef<JqxScheduler | null>(null);
const appointments: Appointment[] = useMemo(
() => [
{
calendar: 'Room 1',
description: 'George brings projector for presentations.',
end: new Date(2026, 10, 20, 16, 0, 0),
id: 'id1',
location: '',
start: new Date(2026, 10, 20, 9, 0, 0),
subject: 'Quarterly Project Review Meeting'
},
{
calendar: 'Room 2',
description: '',
end: new Date(2026, 10, 21, 15, 0, 0),
id: 'id2',
location: '',
start: new Date(2026, 10, 21, 10, 0, 0),
subject: 'IT Group Mtg.'
},
{
calendar: 'Room 3',
description: '',
end: new Date(2026, 10, 24, 13, 0, 0),
id: 'id3',
location: '',
start: new Date(2026, 10, 24, 11, 0, 0),
subject: 'Course Social Media'
},
{
calendar: 'Room 2',
description: '',
end: new Date(2026, 10, 20, 18, 0, 0),
id: 'id4',
location: '',
start: new Date(2026, 10, 20, 16, 0, 0),
subject: 'New Projects Planning'
},
{
calendar: 'Room 1',
description: '',
end: new Date(2026, 10, 22, 17, 0, 0),
id: 'id5',
location: '',
start: new Date(2026, 10, 22, 15, 0, 0),
subject: 'Interview with James'
},
{
calendar: 'Room 4',
description: '',
end: new Date(2026, 10, 23, 16, 0, 0),
id: 'id6',
location: '',
start: new Date(2026, 10, 23, 14, 0, 0),
subject: 'Interview with Nancy'
}
],
[]
);
const source = useMemo(
() => ({
dataFields: [
{ name: 'id', type: 'string' },
{ name: 'description', type: 'string' },
{ name: 'location', type: 'string' },
{ name: 'subject', type: 'string' },
{ name: 'calendar', type: 'string' },
{ name: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
dataType: 'array',
id: 'id',
localData: appointments
}),
[appointments]
);
const dataAdapter = useMemo(() => new jqx.dataAdapter(source), [source]);
const appointmentDataFields = useMemo(
() => ({
description: 'description',
from: 'start',
id: 'id',
location: 'location',
resourceId: 'calendar',
subject: 'subject',
to: 'end'
}),
[]
);
const resources = useMemo(
() => ({
colorScheme: 'scheme05',
dataField: 'calendar',
source: new jqx.dataAdapter(source)
}),
[source]
);
const date = useMemo(() => new jqx.date(2026, 11, 20), []);
const ready = useCallback(() => {
setTimeout(() => {
myScheduler.current?.ensureAppointmentVisible('id1');
}, 0);
}, []);
const height = 600;
const views = useMemo((): ISchedulerProps['views'] => ['dayView', 'weekView', 'monthView'], []);
return (
<JqxScheduler
theme="tailwind-blue-dark"
ref={myScheduler}
width="100%"
height={height}
date={date}
source={dataAdapter}
showLegend={true}
view="weekView"
appointmentDataFields={appointmentDataFields}
resources={resources}
views={views}
ready={ready}
/>
);
}
export default App;Options are props. Keep objects such as the data adapter and the columns stable across renders with useMemo, so the component does not reload them.
Each event is a prop named on plus the event name with a capital first letter. For example, scheduleraiResult: This event is triggered when an AI method completes.
const handleScheduleraiResult = (event: any): void => {
console.log(event.args);
};
return <JqxScheduler onScheduleraiResult={handleScheduleraiResult} />;
Call methods through a ref. For example, focus: Focuses the Scheduler.
import { useRef } from 'react';
const myScheduler = useRef<JqxScheduler>(null);
const onClick = () => {
myScheduler.current!.focus();
};
return <JqxScheduler ref={myScheduler} />;
Every component also has setOptions({ … }) and getOptions('name'), to change or read options after the first render.