@ionic/angular
Version:
Angular specific wrappers for @ionic/core
26 lines • 551 B
JavaScript
// TODO(FW-2827): types
export class OverlayBaseController {
ctrl;
constructor(ctrl) {
this.ctrl = ctrl;
}
/**
* Creates a new overlay
*/
create(opts) {
return this.ctrl.create((opts || {}));
}
/**
* When `id` is not provided, it dismisses the top overlay.
*/
dismiss(data, role, id) {
return this.ctrl.dismiss(data, role, id);
}
/**
* Returns the top overlay.
*/
getTop() {
return this.ctrl.getTop();
}
}
//# sourceMappingURL=overlay.js.map