Add definitions for ngCordova datepicker plugin

This commit is contained in:
Jacques Kang
2015-11-14 16:04:39 +01:00
parent 708609e076
commit d0c14c9c19
+38
View File
@@ -0,0 +1,38 @@
// Type definitions for ngCordova datepicker plugin
// Project: https://github.com/VitaliiBlagodir/cordova-plugin-datepicker
// Definitions by: Jacques Kang <https://www.linkedin.com/in/jacqueskang>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
declare module ngCordova {
export interface DatePickerOptions {
mode?: string;
date?: Date | string;
minDate?: Date | string;
maxDate?: Date | string;
titleText?: string;
okText?: string;
cancelText?: string;
todayText?: string;
nowText?: string;
is24Hour?: boolean;
androidTheme?: number;
allowOldDates?: boolean;
allowFutureDates?: boolean;
doneButtonLabel?: string;
doneButtonColor?: string;
cancelButtonLabel?: string;
cancelButtonColor?: string;
x?: number;
y?: number;
minuteInterval?: number;
popoverArrowDirection?: string;
locale?: string;
}
export interface IDatePickerService {
show(options?: DatePickerOptions): ng.IPromise<Date>;
}
}