Skip to content

Commit

Permalink
fix(datepicker): datepicker options are optional
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Mar 6, 2016
1 parent c11e31b commit c3cfd14
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/plugins/datepicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {Plugin, Cordova} from './plugin';
*
* Platforms supported: iOS, Android, Windows
*
* Requires cordova-plugin-datepicker by VitaliiBlagodir that can be [found here](https://github.com/VitaliiBlagodir/cordova-plugin-datepicker).
* Requires Cordova plugin: `cordova-plugin-datepicker`. For more info, please see the [Datepicker plugin docs](https://github.com/VitaliiBlagodir/cordova-plugin-datepicker).
*
* Install the plugin by running the following command:
* ```shell
Expand All @@ -30,30 +30,30 @@ export class DatePicker {
* @returns {Promise<Date>} Returns a promise that resolves with the picked date and/or time, or rejects with an error.
*/
@Cordova()
static show(options? : {
mode : string,
date : string,
minDate : string,
maxDate : string,
titleText : string,
okText : string,
cancelText : string,
todayText : string,
nowText : string,
is24Hour : boolean,
androidTheme : number,
allowOldDate: boolean,
allowFutureDates : boolean,
doneButtonLabel : string,
doneButtonColor : string,
cancelButtonLabel : string,
cancelButtonColor : string,
x : string,
y : string,
minuteInterval : number,
popoverArrowDirection : string,
locale : string
}) : Promise<Date> {
static show(options?: {
mode?: string,
date?: string,
minDate?: string,
maxDate?: string,
titleText?: string,
okText?: string,
cancelText?: string,
todayText?: string,
nowText?: string,
is24Hour?: boolean,
androidTheme?: number,
allowOldDate?: boolean,
allowFutureDates?: boolean,
doneButtonLabel?: string,
doneButtonColor?: string,
cancelButtonLabel?: string,
cancelButtonColor?: string,
x?: string,
y?: string,
minuteInterval?: number,
popoverArrowDirection?: string,
locale?: string
}): Promise<Date> {
return new Promise<Date>((res, rej) => {});
}

Expand Down

0 comments on commit c3cfd14

Please sign in to comment.