mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-31 18:49:43 +08:00
fix(datepicker): date now accepts Date, string, or number (#428)
closes #354
This commit is contained in:
parent
c9b76c4a9a
commit
aaddd9eea2
@ -13,7 +13,7 @@ export interface DatePickerOptions {
|
|||||||
* Platforms: iOS, Android, Windows
|
* Platforms: iOS, Android, Windows
|
||||||
* Selected date
|
* Selected date
|
||||||
*/
|
*/
|
||||||
date: Date;
|
date: Date | string | number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Platforms: iOS, Android, Windows
|
* Platforms: iOS, Android, Windows
|
||||||
@ -21,7 +21,7 @@ export interface DatePickerOptions {
|
|||||||
* Type: Date | empty String
|
* Type: Date | empty String
|
||||||
* Default: empty String
|
* Default: empty String
|
||||||
*/
|
*/
|
||||||
minDate?: Date;
|
minDate?: Date | string | number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Platforms?: iOS, Android, Windows
|
* Platforms?: iOS, Android, Windows
|
||||||
@ -29,7 +29,7 @@ export interface DatePickerOptions {
|
|||||||
* Type?: Date | empty String
|
* Type?: Date | empty String
|
||||||
* Default?: empty String
|
* Default?: empty String
|
||||||
*/
|
*/
|
||||||
maxDate?: Date;
|
maxDate?: Date | string | number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Platforms?: Android
|
* Platforms?: Android
|
||||||
|
Loading…
Reference in New Issue
Block a user