This is a migrated thread and some comments may be shown as answers.

how to set time using platform native?

1 Answer 48 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 06 Nov 2015, 04:22 PM

Hi, I'm trying to have a mobile timer that let user to set time using platform native time selection.

eg. in iOS how to make d native iOS time roller to show up and get the time after user selection, the same goes with Android & WP?

 

thanks.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 11 Nov 2015, 02:48 PM
Hi John,

In hybrid applications, you can benefit from the built in the web views input hooks to the OS native APIs. In other words, you can use:
<input type="time">
in the html of your project and on iOS and Android devices, it will visualize the native time picker controls.

The above however cannot be said for the WP platform, as it is not supported there. Thus, you will need to use a custom Cordova plugin in order to show the native date/time picker on WP devices. Here is a very detailed explanation of how this can be achieved. I hope it helps.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
HTML5, CSS, JavaScript
Asked by
John
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or