mrfoh / cordova-datepicker-plugin

Datepicker for Apache Cordova
Apache License 2.0
13 stars 4 forks source link

Support datetime mode #1

Open DURK opened 10 years ago

DURK commented 10 years ago

Hi, great project! Amazing how much effort it takes to find a project like this. I'd think these kinds of repo's would be very popular.

My question/remark is this: In your README you're suggesting that you can use mode 'date', 'time' or '' (empty) for both, meaning: datetime. As I couldn't get this to work, I started checking out your code and saw this line:

Log.d(pluginName, "Unknown action. Only 'date' or 'time' are valid actions");

Am I missing something or is it just not implemented? In the latter case, I'll see if I can implement it.

On an aside: I think you're referring to this repo, when you're saying: "Rewrote plugin so it it similar to the iOS datepicker plugin"? I was planning to find out if these 2 projects can be combined and be available for use in Phonegap Build.

Let me know if you're interested and maybe willing to provide some help:) (As I'm a complete noob to pretty much anything that goes behind the 'gap')

mrfoh commented 10 years ago

Well when comes to the Java stuff behind the plugin am pretty much a noob too. It took alot of trial and error to get the plugin working as it was older plugin for the previous phonegap plugin architecture and i ported over to phonegap 3.0.0. The thing is i havent tested out the 'time' mode since i ported the plugin as i primarily need the 'date' mode. The plugin is based on this plugin https://github.com/phonegap/phonegap-plugins/tree/master/Android/DatePicker Any help with the plugin will be appreciated.