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

Function dismissOverlay

core/src/utils/overlays.ts:428–440  ·  view source on GitHub ↗
(
  doc: Document,
  data: any,
  role: string | undefined,
  overlayTag: string,
  id?: string
)

Source from the content-addressed store, hash-verified

426};
427
428export const dismissOverlay = (
429 doc: Document,
430 data: any,
431 role: string | undefined,
432 overlayTag: string,
433 id?: string
434): Promise<boolean> => {
435 const overlay = getPresentedOverlay(doc, overlayTag, id);
436 if (!overlay) {
437 return Promise.reject('overlay does not exist');
438 }
439 return overlay.dismiss(data, role);
440};
441
442/**
443 * Returns a list of all overlays in the DOM even if they are not presented.

Callers 1

dismissFunction · 0.85

Calls 2

getPresentedOverlayFunction · 0.85
dismissMethod · 0.65

Tested by

no test coverage detected