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

Function showModal

static/bootstrap-utils.ts:153–159  ·  view source on GitHub ↗
(elementOrSelector: string | HTMLElement | JQuery, relatedTarget?: HTMLElement)

Source from the content-addressed store, hash-verified

151 * ```
152 */
153export function showModal(elementOrSelector: string | HTMLElement | JQuery, relatedTarget?: HTMLElement): void {
154 const element = getElement(elementOrSelector);
155 if (!element) return;
156
157 const modal = Modal.getInstance(element) || new Modal(element);
158 modal.show(relatedTarget);
159}
160
161/**
162 * Hide a modal

Callers

nothing calls this directly

Calls 2

getElementFunction · 0.85
showMethod · 0.45

Tested by

no test coverage detected