overlay/src/overlay/overlay.service.ts
OverlayService provides an overlay for displaying content on top of other content.
Example :displayOverlay() {
this.overlayRef = this.overlayService.open(CustomOverlayComponent, {
data: {
title: 'title',
},
});
this.overlayRef.onClose.subscribe((myString) => {
console.log('[OverlayDemo] onClose Subscription: ', myString);
});
} import { OverlayService } from '@talenra/components/overlay';See OverlayRef
Methods |
| open | ||||||||||||
open(componentType: Type
|
||||||||||||
|
Opens an overlay with a given component type and configuration. Example :
Parameters :
Returns :
any
A reference to the newly-opened overlay. Example : |