Skip to content

Commit

Permalink
v0.8.2 add Android error callback
Browse files Browse the repository at this point in the history
  • Loading branch information
VitaliiBlagodir committed Jun 26, 2015
1 parent 9727f9f commit 16dc720
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
34 changes: 14 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,19 @@ phonegap local plugin add cordova-plugin-datepicker

```js
var options = {
date: new Date(),
mode: 'date'
date: new Date(),
mode: 'date'
};

datePicker.show(options, function(date){
alert("date result " + date);
});
function onSuccess(date) {
alert('Selected date: ' + date);
}

function onError(error) { // Android only
alert('Error: ' + error);
}

datePicker.show(options, onSuccess, onError);
```

## Options
Expand Down Expand Up @@ -192,18 +198,6 @@ Type: Integer
Default: `1`

## Requirements
- PhoneGap 3.0 or newer / Cordova 3.0 or newer
- Android 2.3.1 or newer / iOS 5 or newer

## Example

```js
var options = {
date: new Date(),
mode: 'date'
};

datePicker.show(options, function(date){
alert("date result " + date);
});
```
- Cordova 3.0+
- iOS 6.0+
- Android 2.3+
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-plugin-datepicker",
"version": "0.8.1",
"version": "0.8.2",
"description": "Cordova DatePicker Plugin",
"cordova": {
"id": "cordova-plugin-datepicker",
Expand All @@ -24,4 +24,4 @@
],
"author": "Vitalii Blagodir <[email protected]>",
"license": "Apache 2.0"
}
}
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-plugin-datepicker"
version="0.8.1">
version="0.8.2">

<name>DatePicker</name>

Expand Down

0 comments on commit 16dc720

Please sign in to comment.