Skip to main content
cngx-src documentation

CngxOverlayRef

ClassPrimaryv0.1.0WCAG AA

projects/ui/overlay/overlay-ref.ts

Import#

import { CngxOverlayRef } from '@cngx/ui/overlay'

Description#

Typed wrapper around a CDK OverlayRef that exposes a close result stream.

Dependencies#

CdkOverlayRefconstructor

Index#

Properties

Methods

Instance Properties#

afterClosed$#unknown
Readonly

Emits once with the close result when the overlay is dismissed, then completes.

this._afterClosed.asObservable()

Methods#

close#void
close(result?: R)

Closes the overlay, emitting result on afterClosed$, then disposes the CDK ref.

@paramresult?R