timepicker-ui
4.7.0GitHub
timepicker-ui
Features / Editable Input

Editable Input

Allow manual input editing

Enable Editable

#

Allow users to manually type time:

const picker = new TimepickerUI(input, {
ui: { editable: true }
});
picker.create();

Editable with 24h

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

Editable with Validation

#

Validate manually entered time with error callback:

const picker = new TimepickerUI(input, {
ui: { editable: true },
callbacks: {
onError: (data) => {
console.log('Invalid time:', data.error);
}
}
});
picker.create();
Esc