MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / hideToast

Function hideToast

static/bootstrap-utils.ts:193–199  ·  view source on GitHub ↗
(elementOrSelector: string | HTMLElement | JQuery)

Source from the content-addressed store, hash-verified

191 * `const toast = Toast.getInstance(element); if (toast) toast.hide();`
192 */
193export function hideToast(elementOrSelector: string | HTMLElement | JQuery): void {
194 const element = getElement(elementOrSelector);
195 if (!element) return;
196
197 const toast = Toast.getInstance(element);
198 if (toast) toast.hide();
199}
200
201/**
202 * Get an existing dropdown instance for an element

Callers

nothing calls this directly

Calls 2

getElementFunction · 0.85
hideMethod · 0.45

Tested by

no test coverage detected