This demonstrates 24-hours time format of the TimePicker.
A live Angular example of jqxTimePicker, the jQWidgets TimePicker component, with its complete source code below. It is one of 4 jqxTimePicker demos for Angular.
format property – Sets or gets the whether hour selection format is using a 12-hour or 24-hour clock convention.width property – Sets or gets the width.To run it in your own app, install the package with npm install jqwidgets-ng, add these files to a standalone Angular CLI app, and add jqx.base.css and a theme to the styles in angular.json.
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { jqxTimePickerModule } from 'jqwidgets-ng/jqxtimepicker';
@Component({
imports: [CommonModule, FormsModule, jqxTimePickerModule],
selector: 'app-root',
templateUrl: './app.html'
})
export class App {
format: string = "24-hour";
}
<jqxTimePicker [width]="400" [format]="format"></jqxTimePicker>