Example · Features
Switch Icon
Enable icon to toggle between mobile and desktop views
Enable Switch Icon
Show icon to switch between mobile and desktop versions:
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: { enableSwitchIcon: true }3});4picker.create();
With Mobile Default
Start in mobile mode with switch icon:
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: {3 mobile: true,4 enableSwitchIcon: true5 }6});7picker.create();
With Theme
index.tstypescript
1const picker = new TimepickerUI(input, {2 ui: {3 enableSwitchIcon: true,4 theme: 'dark'5 }6});7picker.create();