MCPcopy Index your code
hub / github.com/tinyplex/tinybase / queryElement

Function queryElement

site/js/common/common.ts:27–30  ·  view source on GitHub ↗
(
  element: HTMLElement,
  query: string,
)

Source from the content-addressed store, hash-verified

25export const query = (query: string): HTMLElement =>
26 doc.querySelector(query) as HTMLElement;
27export const queryElement = (
28 element: HTMLElement,
29 query: string,
30): HTMLElement => element.querySelector(query) as HTMLElement;
31export const queryById = (id: string): HTMLElement =>
32 doc.getElementById(id) as HTMLElement;
33

Callers 5

openCloseFunction · 0.90
bindKeyboardFunction · 0.90
goFunction · 0.85
addStackblitzFunction · 0.85
updateNavFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…