From ed7e783693e20ca169428a7577dfaa55c28c6fc0 Mon Sep 17 00:00:00 2001 From: Ibrahim Hadeed Date: Fri, 25 Mar 2016 20:49:42 -0400 Subject: [PATCH] feat(toast): add new features to toast plugin closes https://github.com/driftyco/ionic-native/issues/60 --- src/plugins/toast.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/plugins/toast.ts b/src/plugins/toast.ts index 7d300a1822..20c2632c9e 100644 --- a/src/plugins/toast.ts +++ b/src/plugins/toast.ts @@ -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