cancel
Showing results for 
Search instead for 
Did you mean: 

Time picker control question

omakinen
Participant
0 Kudos

Hi all!

We have a custom made UI5 app with many time picker controls. The standard time picker allows you to scroll the values up and down with swiping or with mouse clicks while using a PC or by finger with a mobile device. However, you can't type in the numbers which would be so much faster in many cases.

Our users use PC most of the time so the swiping interface is not optimal. On the other hand, they sometime use a mobile device and then the swipe/scroll control is fine.

This is what we use now (the Time control):

https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.DateTimeInput/preview

Is there a time picker control which would allow both scrolling and typing or the typing input alone?

Thanks!

Br, Ossi

Accepted Solutions (1)

Accepted Solutions (1)

former_member182862
Active Contributor
0 Kudos

Not that I know of.

The input element is set to readonly.

We can remove the readonly property and you can enter the time but you need to validate the input yourself.

Thanks

-D

omakinen
Participant
0 Kudos

Thanks Dennis! This is good to know.

We just have to make do with the standard control for now. It's too much work to start coding all the input validations by hand. Just out of curiosity: how could one make the standard control open for editing?

Maybe in the future there will be a more flexible time control which can take in "cues" from the keyboard and jump to the correct position.

Answers (1)

Answers (1)

vladislav_iliev
Explorer
0 Kudos

Hi,

If you need a control for the time part (without date part), there is a TimePicker recently appeared:

https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.TimePicker/preview