Angular UI Components Documentation
The Angular TimePicker lets users pick a time of day on a clock face, in 12-hour or 24-hour format. This guide adds the Angular TimePicker (jqxTimePicker) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-ngjqwidgets-ng/jqxtimepicker 
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 jqxTimePickerModule to the imports of the component that uses it.
import { Component } from '@angular/core';
import { jqxTimePickerModule } from 'jqwidgets-ng/jqxtimepicker';
@Component({
selector: 'app-root',
imports: [jqxTimePickerModule],
templateUrl: './app.html'
})
export class App {}
The source of the live Default Functionality demo.
<jqxTimePicker [width]="400" [height]="400">
</jqxTimePicker>
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { jqxButtonModule } from 'jqwidgets-ng/jqxbuttons';
import { jqxTimePickerModule } from 'jqwidgets-ng/jqxtimepicker';
import { jqxFormModule } from 'jqwidgets-ng/jqxform';
@Component({
imports: [CommonModule, FormsModule, jqxButtonModule, jqxTimePickerModule, jqxFormModule],
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 value is changed.
<jqxTimePicker (onChange)="onChange($event)"></jqxTimePicker>
onChange(event: any): void {
console.log(event.args);
}
Get the component with a signal query and call its methods. For example, setHours: Sets the hours.
<jqxTimePicker #myTimePicker></jqxTimePicker>
import { Component, viewChild } from '@angular/core';
import { jqxTimePickerModule, jqxTimePickerComponent } from 'jqwidgets-ng/jqxtimepicker';
@Component({
selector: 'app-root',
imports: [jqxTimePickerModule],
templateUrl: './app.html'
})
export class App {
readonly myTimePicker = viewChild.required<jqxTimePickerComponent>('myTimePicker');
run(): void {
this.myTimePicker().setHours(0);
}
}