MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getScrollElement

Function getScrollElement

core/src/utils/content/index.ts:28–35  ·  view source on GitHub ↗
(el: Element)

Source from the content-addressed store, hash-verified

26 * or a selector within the host, if supplied through `scrollTarget`.
27 */
28export const getScrollElement = async (el: Element) => {
29 if (isIonContent(el)) {
30 await new Promise((resolve) => componentOnReady(el, resolve));
31 return (el as HTMLIonContentElement).getScrollElement();
32 }
33
34 return el as HTMLElement;
35};
36
37/**
38 * Queries the element matching the selector for IonContent.

Callers 9

FooterClass · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
HeaderClass · 0.90
setupCondenseHeaderMethod · 0.90
connectedCallbackMethod · 0.90
scrollToFragmentFunction · 0.90
jsSetFocusFunction · 0.90

Calls 3

componentOnReadyFunction · 0.90
isIonContentFunction · 0.85
getScrollElementMethod · 0.80

Tested by

no test coverage detected