Files
ionic-framework/core/src/components/toast/toast-interface.ts
Manu MA c982856dba feat(toast): add "color" prop (#16100)
This commit also refactors ion-toast, so it uses shadow-dom,
this is required since CSS variables
does not work well in non-shadow-dom components.

fixes #16099
2018-10-26 18:53:02 +02:00

21 lines
469 B
TypeScript

import { AnimationBuilder, Color, Mode } from '../../interface';
export interface ToastOptions {
message?: string;
cssClass?: string | string[];
duration?: number;
showCloseButton?: boolean;
closeButtonText?: string;
position?: 'top' | 'bottom' | 'middle';
translucent?: boolean;
animated?: boolean;
color?: Color;
mode?: Mode;
keyboardClose?: boolean;
id?: string;
enterAnimation?: AnimationBuilder;
leaveAnimation?: AnimationBuilder;
}