(elementOrSelector: string | HTMLElement | JQuery, options?: Partial<Toast.Options>)
| 176 | * @param options Optional Toast options if a new instance needs to be created |
| 177 | */ |
| 178 | export function showToast(elementOrSelector: string | HTMLElement | JQuery, options?: Partial<Toast.Options>): void { |
| 179 | const element = getElement(elementOrSelector); |
| 180 | if (!element) return; |
| 181 | |
| 182 | const toast = Toast.getInstance(element) || new Toast(element, options); |
| 183 | toast.show(); |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Hide a toast |
nothing calls this directly
no test coverage detected