timepicker-ui
4.7.0GitHub
timepicker-ui
Features / Mobile Version

Mobile Version

Open the picker in the keyboard view, where users type the time, with ui.initialView: 'keyboard'.

Start in the Keyboard View

#

Open with the hour and minute fields instead of the clock face:

const picker = new TimepickerUI(input, {
ui: { initialView: 'keyboard' }
});
picker.create();

Keyboard View with Custom Labels

#

Change the title and the field captions of the keyboard view:

const picker = new TimepickerUI(input, {
ui: { initialView: 'keyboard' },
labels: {
hour: 'Hour',
minute: 'Minute',
keyboardTitle: 'Enter Time'
}
});
picker.create();

Keyboard View with View Switch

#

Show the icon that switches between the keyboard view and the clock face:

const picker = new TimepickerUI(input, {
ui: {
initialView: 'keyboard',
viewSwitch: true
}
});
picker.create();

Keyboard View with 24h

#
const picker = new TimepickerUI(input, {
ui: { initialView: 'keyboard' },
clock: { type: '24h' }
});
picker.create();
Esc