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

Method onIsOpenChange

core/src/components/alert/alert.tsx:167–173  ·  view source on GitHub ↗
(newValue: boolean, oldValue: boolean)

Source from the content-addressed store, hash-verified

165 @Prop() isOpen = false;
166 @Watch('isOpen')
167 onIsOpenChange(newValue: boolean, oldValue: boolean) {
168 if (newValue === true && oldValue === false) {
169 this.present();
170 } else if (newValue === false && oldValue === true) {
171 this.dismiss();
172 }
173 }
174
175 /**
176 * 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