mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-01 02:53:03 +08:00
feat(toast): add new features to toast plugin
closes https://github.com/driftyco/ionic-native/issues/60
This commit is contained in:
parent
89ea2e0180
commit
ed7e783693
@ -2,10 +2,37 @@ import {Plugin, Cordova} from './plugin';
|
||||
import {Observable} from 'rxjs/Observable';
|
||||
|
||||
export interface ToastOptions {
|
||||
/**
|
||||
* Message to display
|
||||
*/
|
||||
message?: string;
|
||||
/**
|
||||
* Duration in ms to show
|
||||
*/
|
||||
duration?: string;
|
||||
/**
|
||||
* Position
|
||||
*/
|
||||
position?: string;
|
||||
/**
|
||||
* Add negative value to move it up a bit
|
||||
*/
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user