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

Function getDropdownInstance

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

Source from the content-addressed store, hash-verified

204 * @returns Existing dropdown instance or null if not found
205 */
206export function getDropdownInstance(elementOrSelector: string | HTMLElement | JQuery): Dropdown | null {
207 const element = getElement(elementOrSelector);
208 if (!element) return null;
209
210 return Dropdown.getInstance(element);
211}
212
213/**
214 * Show a dropdown

Callers

nothing calls this directly

Calls 1

getElementFunction · 0.85

Tested by

no test coverage detected