mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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
21 lines
469 B
TypeScript
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;
|
|
}
|