Angular UI Components Documentation
The Angular Scheduler shows appointments in day, week, month, timeline and agenda views, with recurring appointments and resources. This guide adds the Angular Scheduler (jqxScheduler) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxscheduler 
In an Angular project (to start one, see Getting started with Angular), add the package with the Angular CLI. It asks for a theme and adds the styles to angular.json:
ng add jqwidgets-ng
Components are standalone: add jqxSchedulerModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxSchedulerModule } from 'jqwidgets-ng/jqxscheduler';
@Component({
selector: 'app-root',
imports: [jqxSchedulerModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<jqxScheduler #schedulerReference
[date]="date" [width]="800" [height]="600" [source]="dataAdapter" [showLegend]="true" [view]="'weekView'"
[appointmentDataFields]="appointmentDataFields" [resources]="resources" [views]="views">
</jqxScheduler>
import { Component, AfterViewInit, viewChild } from '@angular/core';
import { jqxSchedulerComponent } from 'jqwidgets-ng/jqxscheduler';
import { CommonModule } from '@angular/common';
import { jqxSchedulerModule } from 'jqwidgets-ng/jqxscheduler';
@Component({
imports: [CommonModule, jqxSchedulerModule],
selector: 'app-root',
templateUrl: './app.html'
})
export class App implements AfterViewInit {
readonly scheduler = viewChild.required<jqxSchedulerComponent>('schedulerReference');
ngAfterViewInit(): void {
this.scheduler().ensureAppointmentVisible('id1');
}
getWidth(): any {
if (document.body.offsetWidth < 850) {
return '90%';
}
return 850;
}
generateAppointments(): any {
let appointments = new Array();
let appointment1 = {
id: 'id1',
description: 'George brings projector for presentations.',
location: '',
subject: 'Quarterly Project Review Meeting',
calendar: 'Room 1',
start: new Date(2026, 10, 23, 9, 0, 0),
end: new Date(2026, 10, 23, 16, 0, 0)
};
let appointment2 = {
id: 'id2',
description: '',
location: '',
subject: 'IT Group Mtg.',
calendar: 'Room 2',
start: new Date(2026, 10, 24, 10, 0, 0),
end: new Date(2026, 10, 24, 15, 0, 0)
};
let appointment3 = {
id: 'id3',
description: '',
location: '',
subject: 'Course Social Media',
calendar: 'Room 3',
start: new Date(2026, 10, 27, 11, 0, 0),
end: new Date(2026, 10, 27, 13, 0, 0)
};
let appointment4 = {
id: 'id4',
description: '',
location: '',
subject: 'New Projects Planning',
calendar: 'Room 2',
start: new Date(2026, 10, 23, 16, 0, 0),
end: new Date(2026, 10, 23, 18, 0, 0)
};
let appointment5 = {
id: 'id5',
description: '',
location: '',
subject: 'Interview with James',
calendar: 'Room 1',
start: new Date(2026, 10, 25, 15, 0, 0),
end: new Date(2026, 10, 25, 17, 0, 0)
};
let appointment6 = {
id: 'id6',
description: '',
location: '',
subject: 'Interview with Nancy',
calendar: 'Room 4',
start: new Date(2026, 10, 26, 14, 0, 0),
end: new Date(2026, 10, 26, 16, 0, 0)
};
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
return appointments;
}
source: any = {
dataType: 'array',
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' }
],
id: 'id',
localData: this.generateAppointments()
};
dataAdapter: any = new jqx.dataAdapter(this.source);
date: any = new jqx.date(2026, 11, 23);
appointmentDataFields: any = {
from: 'start',
to: 'end',
id: 'id',
description: 'description',
location: 'location',
subject: 'subject',
resourceId: 'calendar'
};
resources: any = {
colorScheme: 'scheme05',
dataField: 'calendar',
source: new jqx.dataAdapter(this.source)
};
views: any[] = ['dayView', 'weekView', 'monthView'];
}Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, scheduleraiResult: This event is triggered when an AI method completes.
<jqxScheduler (onScheduleraiResult)="onScheduleraiResult($event)"></jqxScheduler>
onScheduleraiResult(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, focus: Focuses the Scheduler.
<jqxScheduler #myScheduler></jqxScheduler>
import { Component, viewChild } from '@angular/core';
import { jqxSchedulerModule, jqxSchedulerComponent } from 'jqwidgets-ng/jqxscheduler';
@Component({
selector: 'app-root',
imports: [jqxSchedulerModule],
templateUrl: './app.html'
})
export class App {
readonly myScheduler = viewChild.required<jqxSchedulerComponent>('myScheduler');
run(): void {
this.myScheduler().focus();
}
}