Angular UI Components Documentation
The Angular Calendar enables the user to select a date using a visual monthly calendar display. This guide adds the Angular Calendar (jqxCalendar) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxcalendar 
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 jqxCalendarModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxCalendarModule } from 'jqwidgets-ng/jqxcalendar';
@Component({
selector: 'app-root',
imports: [jqxCalendarModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<jqxCalendar [width]="220" [height]="220"></jqxCalendar>
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { jqxCalendarModule } from 'jqwidgets-ng/jqxcalendar';
@Component({
imports: [CommonModule, jqxCalendarModule],
selector: 'app-root',
templateUrl: './app.html'
})
export class App {}
Options are inputs, bound with [name]="value".
Events are outputs named on plus the event name with a capital first letter. For example, change: This event is triggered when the Calendar's selection is changed.
<jqxCalendar (onChange)="onChange($event)"></jqxCalendar>
onChange(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, val: Gets or sets the jqxCalendar's value.
<jqxCalendar #myCalendar></jqxCalendar>
import { Component, viewChild } from '@angular/core';
import { jqxCalendarModule, jqxCalendarComponent } from 'jqwidgets-ng/jqxcalendar';
@Component({
selector: 'app-root',
imports: [jqxCalendarModule],
templateUrl: './app.html'
})
export class App {
readonly myCalendar = viewChild.required<jqxCalendarComponent>('myCalendar');
run(): void {
const value = this.myCalendar().val();
console.log(value);
}
}