Example · Features
Mobile Version
Force mobile-optimized interface
Force Mobile Version
Enable mobile-optimized version:
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: { mobile: true }3});4picker.create();
Mobile with Custom Labels
Customize labels for mobile version:
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: { mobile: true },3 labels: {4 mobileHour: 'Hour',5 mobileMinute: 'Minute',6 mobileTime: 'Enter Time'7 }8});9picker.create();
Mobile with Switch Icon
Enable icon to switch between mobile and desktop:
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: {3 mobile: true,4 enableSwitchIcon: true5 }6});7picker.create();
Mobile with 24h
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: { mobile: true },3 clock: { type: '24h' }4});5picker.create();