MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / findClosestIonContent

Function findClosestIonContent

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

Source from the content-addressed store, hash-verified

55 * Queries the closest element matching the selector for IonContent.
56 */
57export const findClosestIonContent = (el: Element) => {
58 return el.closest<HTMLElement>(ION_CONTENT_SELECTOR);
59};
60
61/**
62 * Scrolls to the top of the element. If an `ion-content` is found, it will scroll

Callers 11

connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
connectedCallbackMethod · 0.90
scrollToFragmentFunction · 0.90
canStartFunction · 0.90
canStartFunction · 0.90
onStartFunction · 0.90
startStatusTapFunction · 0.90
registerInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected