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

Method present

core/src/components/loading/loading.tsx:251–263  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 */
250 @Method()
251 async present(): Promise<void> {
252 const unlock = await this.lockController.lock();
253
254 await this.delegateController.attachViewToDom();
255
256 await present(this, 'loadingEnter', iosEnterAnimation, mdEnterAnimation);
257
258 if (this.duration > 0) {
259 this.durationTimeout = setTimeout(() => this.dismiss(), this.duration + 10);
260 }
261
262 unlock();
263 }
264
265 /**
266 * Dismiss the loading overlay after it has been presented.

Callers 2

onIsOpenChangeMethod · 0.95
componentDidLoadMethod · 0.95

Calls 4

dismissMethod · 0.95
presentFunction · 0.90
lockMethod · 0.80
attachViewToDomMethod · 0.65

Tested by

no test coverage detected