File

projects/ui-kit-lib/src/lib/v2/toastr/overlay/overlay.ts

Description

Service to create Overlays. Overlays are dynamically added pieces of floating UI, meant to be used as a low-level building building block for other components. Dialogs, tooltips, menus, selects, etc. can all be built using overlays. The service should primarily be used by authors of re-usable components rather than developers building end-user applications.

An overlay is a PortalHost, so any kind of Portal can be loaded into one.

Index

Methods

Methods

create
create(positionClass?: string, overlayContainer?: ToastContainerDirective)

Creates an overlay.

Parameters :
Name Type Optional
positionClass string Yes
overlayContainer ToastContainerDirective Yes
Returns : OverlayRef

A reference to the created overlay.

getPaneElement
getPaneElement(positionClass: string, overlayContainer?: ToastContainerDirective)
Parameters :
Name Type Optional Default value
positionClass string No ''
overlayContainer ToastContainerDirective Yes
Returns : HTMLElement

results matching ""

    No results matching ""