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

Method dismiss

core/src/components/alert/alert.tsx:468–480  ·  view source on GitHub ↗
(data?: any, role?: string)

Source from the content-addressed store, hash-verified

466 */
467 @Method()
468 async dismiss(data?: any, role?: string): Promise<boolean> {
469 const unlock = await this.lockController.lock();
470
471 const dismissed = await dismiss(this, data, role, 'alertLeave', iosLeaveAnimation, mdLeaveAnimation);
472
473 if (dismissed) {
474 this.delegateController.removeViewFromDom();
475 }
476
477 unlock();
478
479 return dismissed;
480 }
481
482 /**
483 * Returns a promise that resolves when the alert did dismiss.

Callers 3

onIsOpenChangeMethod · 0.95
buttonClickMethod · 0.95
AlertClass · 0.95

Calls 3

dismissFunction · 0.90
lockMethod · 0.80
removeViewFromDomMethod · 0.65

Tested by

no test coverage detected