Skip to content

Commit

Permalink
feat(toast): add new features to toast plugin
Browse files Browse the repository at this point in the history
closes #60
  • Loading branch information
ihadeed committed Mar 26, 2016
1 parent 89ea2e0 commit ed7e783
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/plugins/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed7e783

Please sign in to comment.