Cordova DatePicker Plugin for iOS and Android code

145 views
Skip to first unread message

Steve Husting

unread,
May 20, 2015, 1:45:08 PM5/20/15
to phon...@googlegroups.com
The plugin readme at http://plugins.cordova.io/#/package/com.plugin.datepicker gives this code to use to implement the date picker: 

<script>
var options = {
  date: new Date(),
  mode: 'date'
};

datePicker.show(options, function(date){
  alert("date result " + date);  
});
</script>

It is obviously incomplete. What do I put in the body to invoke this code? 

Jesse Monroy

unread,
May 20, 2015, 6:58:29 PM5/20/15
to phon...@googlegroups.com
What do you want to do?

Jesse

Steve Husting

unread,
May 20, 2015, 7:03:15 PM5/20/15
to phon...@googlegroups.com
That is not all the code needed to make the picker functional. What other lines of code do we need to make it appear on the screen? What do we put outside the < script > tags?

jcesarmobile

unread,
May 21, 2015, 2:26:14 AM5/21/15
to phon...@googlegroups.com
I think the datePicker.show should make it appear on the screen

Jesse Monroy

unread,
May 21, 2015, 9:07:15 PM5/21/15
to phon...@googlegroups.com
You mean like this?
<html>
<head>
   
<meta http-equiv=content-type content="text/html; charset=utf8">
   
<meta name="viewport" content="width=device-width" />
</head>
<body>
<h1>Hi <span id="hello"></span></h1>
   
</body>
<script>
    document
.getElementById("hello").innerHTML = "Steve Husting";
</script>
</html>

Message has been deleted

Shyaam Jadhav

unread,
May 28, 2015, 2:19:21 AM5/28/15
to phon...@googlegroups.com
I have used this in the past, helps me a lot.

there is a download demo option as well. 
Reply all
Reply to author
Forward
0 new messages