ion-toast-controller
Ionic4项目中我们可以使用Ionic4提示框组件ion-toast-controller对项目进行布局。 ion-toast-controller官方文档地址:https://ionicframework.com/docs/api/toast-controllerToastController is a component used to create Toast components. Please see the docs for
ion-toast-controller 内置方法(Methods)
create | |
---|---|
Description | Create a toast overlay with toast options. |
Signature | create(options?: ToastOptions | undefined) => Promise |
dismiss | |
Description | Dismiss the open toast overlay. |
Signature | dismiss(data?: any, role?: string | undefined, id?: string | undefined) => Promise |
getTop | |
Description | Get the most recently opened toast overlay. |
Signature | getTop() => Promise |