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

Method onIsOpenChange

core/src/components/modal/modal.tsx:270–276  ·  view source on GitHub ↗
(newValue: boolean, oldValue: boolean)

Source from the content-addressed store, hash-verified

268 @Prop() isOpen = false;
269 @Watch('isOpen')
270 onIsOpenChange(newValue: boolean, oldValue: boolean) {
271 if (newValue === true && oldValue === false) {
272 this.present();
273 } else if (newValue === false && oldValue === true) {
274 this.dismiss();
275 }
276 }
277
278 /**
279 * An ID corresponding to the trigger element that

Callers

nothing calls this directly

Calls 2

presentMethod · 0.95
dismissMethod · 0.95

Tested by

no test coverage detected