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

Function getPopoverInstance

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

Source from the content-addressed store, hash-verified

276 * @returns Existing popover instance or null if not found
277 */
278export function getPopoverInstance(elementOrSelector: string | HTMLElement | JQuery): Popover | null {
279 const element = getElement(elementOrSelector);
280 if (!element) return null;
281
282 return Popover.getInstance(element);
283}
284
285/**
286 * Hide an existing popover if it exists

Callers 1

hidePopoverFunction · 0.85

Calls 1

getElementFunction · 0.85

Tested by

no test coverage detected