fix(): datepicker plugin, pluginref, and @Cordova wrapper

This commit is contained in:
Ibrahim Hadeed 2016-02-17 02:23:56 -05:00
parent 5afa58fee4
commit 499ead3aae

View File

@ -20,8 +20,8 @@ import {Plugin, Cordova} from './plugin';
*/ */
@Plugin({ @Plugin({
name: 'DatePicker', name: 'DatePicker',
plugin: '', plugin: 'cordova-plugin-datepicker',
pluginRef: '' pluginRef: 'plugins.datePicker'
}) })
export class DatePicker { export class DatePicker {
@ -30,6 +30,7 @@ export class DatePicker {
* @param options * @param options
* @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
static show(options? : { static show(options? : {
mode : string, mode : string,
date : string, date : string,