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

Method present

core/src/components/picker-legacy/picker.tsx:237–249  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

235 */
236 @Method()
237 async present(): Promise<void> {
238 const unlock = await this.lockController.lock();
239
240 await this.delegateController.attachViewToDom();
241
242 await present(this, 'pickerEnter', iosEnterAnimation, iosEnterAnimation, undefined);
243
244 if (this.duration > 0) {
245 this.durationTimeout = setTimeout(() => this.dismiss(), this.duration);
246 }
247
248 unlock();
249 }
250
251 /**
252 * Dismiss the picker 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