Skip to content

Commit

Permalink
Merge pull request #73 from biodiv/master
Browse files Browse the repository at this point in the history
added support for Windows Phone
  • Loading branch information
VitaliiBlagodir committed Apr 13, 2015
2 parents 0bb9ac7 + 88f82cb commit a8443bf
Show file tree
Hide file tree
Showing 4 changed files with 448 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DatePicker Plugin for Cordova/PhoneGap 3.0 (iOS and Android)
# DatePicker Plugin for Cordova/PhoneGap 4.0 (iOS and Android and Windows)

This is a combined version of DatePicker iOS and Android plugin for Cordova/Phonegap 3.0.
This is a combined version of DatePicker iOS and Android and Windows plugin for Cordova/Phonegap 4.0.
- Original iOS version: https://github.com/sectore/phonegap3-ios-datepicker-plugin

- Original Android version: https://github.com/bikasv/cordova-android-plugins/tree/master/datepicker
Expand Down Expand Up @@ -35,23 +35,23 @@ datePicker.show(options, function(date){

## Options

### mode - iOS, Android
### mode - iOS, Android, Windows
The mode of the date picker.

Type: String

Values: `date` | `time` | `datetime` (iOS only)
Values: `date` | `time` | `datetime` (iOS, Windows only)

Default: `date`

### date - iOS, Android
### date - iOS, Android, Windows
Selected date.

Type: String

Default: `new Date()`

### minDate - iOS, Android
### minDate - iOS, Android, Windows
Minimum date.

Type: Date | empty String
Expand All @@ -61,7 +61,7 @@ Default: `(empty String)`
minDate is a Date object for iOS and an integer for Android, so you need to account for that when using the plugin.


### maxDate - iOS, Android
### maxDate - iOS, Android, Windows
Maximum date.

Type: Date | empty String
Expand Down
10 changes: 10 additions & 0 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,15 @@
<source-file src="src/ios/DatePicker.m" />
<resource-file src="src/ios/DatePicker.xib" />
</platform>

<!-- windows -->
<platform name="windows">
<js-module src="www/windows/DatePicker.js" name="DatePicker">
<clobbers target="datePicker" />
</js-module>
<js-module src="src/windows/DatePickerProxy.js" name="DatePickerProxy">
<merges target="" />
</js-module>
</platform>

</plugin>
Loading

0 comments on commit a8443bf

Please sign in to comment.