projects/ui-kit-lib/src/lib/v2/toastr/overlay/overlay-ref.ts
Reference to an overlay that has been created with the Overlay service. Used to manipulate or dispose of said overlay.
Methods |
constructor(portalHost: BasePortalHost)
|
||||||
|
Parameters :
|
| attach | ||||||||||||
attach(portal: ComponentPortal<unknown>, newestOnTop: unknown)
|
||||||||||||
|
Parameters :
Returns :
ComponentRef<unknown>
|
| detach |
detach()
|
|
Detaches an overlay from a portal.
Returns :
any
Resolves when the overlay has been detached. |