libs/upp-base/src/modules/toasts.ts
Properties |
|
Methods |
constructor(lang: languageService, toast: ToastController, loadingCtr: LoadingController)
|
||||||||||||||||
|
Creates an instance of the
Parameters :
|
| HideWait |
HideWait()
|
|
Dismisses the currently visible loading indicator after a short delay.
Returns :
void
|
| Async ShowAlert | ||||||||||||||||||||
ShowAlert(type: toastType, text: string, duration: number)
|
||||||||||||||||||||
|
Displays a toast notification. Example :
Parameters :
Returns :
any
A Promise that resolves once the toast is presented. |
| Async ShowWait | |||||||||||||||
ShowWait(message: string | null, timeout: number)
|
|||||||||||||||
|
Displays a loading indicator with an optional custom message.
Parameters :
Returns :
any
A Promise that resolves once the loading indicator is presented. |
| Public loadingCtr |
Type : LoadingController
|
|
- The Ionic `LoadingController` for displaying loading indicators.
|
| Public toast |
Type : ToastController
|
|
- The Ionic `ToastController` for displaying toast notifications.
|