@hxui/angular
Version:
* * *
57 lines • 3.41 kB
JavaScript
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,uselessCode} checked by tsc
*/
/**
* Reference to an overlay that has been created with the Overlay service.
* Used to manipulate or dispose of said overlay.
*/
var /**
* Reference to an overlay that has been created with the Overlay service.
* Used to manipulate or dispose of said overlay.
*/
OverlayRef = /** @class */ (function () {
function OverlayRef(_portalHost) {
this._portalHost = _portalHost;
}
/**
* @param {?} portal
* @param {?=} newestOnTop
* @return {?}
*/
OverlayRef.prototype.attach = /**
* @param {?} portal
* @param {?=} newestOnTop
* @return {?}
*/
function (portal, newestOnTop) {
if (newestOnTop === void 0) { newestOnTop = true; }
return this._portalHost.attach(portal, newestOnTop);
};
/**
* Detaches an overlay from a portal.
* @returns Resolves when the overlay has been detached.
*/
/**
* Detaches an overlay from a portal.
* @return {?} Resolves when the overlay has been detached.
*/
OverlayRef.prototype.detach = /**
* Detaches an overlay from a portal.
* @return {?} Resolves when the overlay has been detached.
*/
function () {
return this._portalHost.detach();
};
return OverlayRef;
}());
/**
* Reference to an overlay that has been created with the Overlay service.
* Used to manipulate or dispose of said overlay.
*/
export { OverlayRef };
if (false) {
/** @type {?} */
OverlayRef.prototype._portalHost;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3ZlcmxheS1yZWYuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9AaHh1aS9hbmd1bGFyLyIsInNvdXJjZXMiOlsibGliL3RvYXN0ci9vdmVybGF5L292ZXJsYXktcmVmLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7O0FBT0E7Ozs7O0lBQ0Usb0JBQW9CLFdBQTJCO1FBQTNCLGdCQUFXLEdBQVgsV0FBVyxDQUFnQjtJQUFHLENBQUM7Ozs7OztJQUVuRCwyQkFBTTs7Ozs7SUFBTixVQUNFLE1BQTRCLEVBQzVCLFdBQTJCO1FBQTNCLDRCQ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