Ionic4项目中我们可以使用Ionic4提示框组件ion-toast-controller对项目进行布局。ion-toast-controller中有ionic ion-toast-controller 内置方法(Methods)等ToastController is a component use to create Toast components. Please see the docs for Toast.
create | |
---|---|
Description | Create a toast overlay with toast options. |
Signature | create(opts?: 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 |