mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(datepicker): datepicker options are optional
This commit is contained in:
parent
c11e31ba67
commit
c3cfd14c5e
@ -5,7 +5,7 @@ import {Plugin, Cordova} from './plugin';
|
|||||||
*
|
*
|
||||||
* Platforms supported: iOS, Android, Windows
|
* 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:
|
* Install the plugin by running the following command:
|
||||||
* ```shell
|
* ```shell
|
||||||
@ -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.
|
* @returns {Promise<Date>} Returns a promise that resolves with the picked date and/or time, or rejects with an error.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static show(options? : {
|
static show(options?: {
|
||||||
mode : string,
|
mode?: string,
|
||||||
date : string,
|
date?: string,
|
||||||
minDate : string,
|
minDate?: string,
|
||||||
maxDate : string,
|
maxDate?: string,
|
||||||
titleText : string,
|
titleText?: string,
|
||||||
okText : string,
|
okText?: string,
|
||||||
cancelText : string,
|
cancelText?: string,
|
||||||
todayText : string,
|
todayText?: string,
|
||||||
nowText : string,
|
nowText?: string,
|
||||||
is24Hour : boolean,
|
is24Hour?: boolean,
|
||||||
androidTheme : number,
|
androidTheme?: number,
|
||||||
allowOldDate: boolean,
|
allowOldDate?: boolean,
|
||||||
allowFutureDates : boolean,
|
allowFutureDates?: boolean,
|
||||||
doneButtonLabel : string,
|
doneButtonLabel?: string,
|
||||||
doneButtonColor : string,
|
doneButtonColor?: string,
|
||||||
cancelButtonLabel : string,
|
cancelButtonLabel?: string,
|
||||||
cancelButtonColor : string,
|
cancelButtonColor?: string,
|
||||||
x : string,
|
x?: string,
|
||||||
y : string,
|
y?: string,
|
||||||
minuteInterval : number,
|
minuteInterval?: number,
|
||||||
popoverArrowDirection : string,
|
popoverArrowDirection?: string,
|
||||||
locale : string
|
locale?: string
|
||||||
}) : Promise<Date> {
|
}): Promise<Date> {
|
||||||
return new Promise<Date>((res, rej) => {});
|
return new Promise<Date>((res, rej) => {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user