feat(toast): add new features to toast plugin

closes https://github.com/driftyco/ionic-native/issues/60
This commit is contained in:
Ibrahim Hadeed 2016-03-25 20:49:42 -04:00
parent 89ea2e0180
commit ed7e783693

View File

@ -2,10 +2,37 @@ import {Plugin, Cordova} from './plugin';
import {Observable} from 'rxjs/Observable'; import {Observable} from 'rxjs/Observable';
export interface ToastOptions { export interface ToastOptions {
/**
* Message to display
*/
message?: string; message?: string;
/**
* Duration in ms to show
*/
duration?: string; duration?: string;
/**
* Position
*/
position?: string; position?: string;
/**
* Add negative value to move it up a bit
*/
addPixelsY?: number; addPixelsY?: number;
/**
* Pass JSON object to be sent back in success callback
*/
data?: any;
/**
* Styling
*/
styling? : {
opacity? : number;
backgroundColor? : string;
textColor? : string;
cornerRadius? : number;
horizontalPadding? : number;
verticalPadding? : number;
};
} }
/** /**
* @name Toast * @name Toast