overlay/src/overlay/overlay.ref.ts
The OverlayRef is a reference to an overlay that has been created using the OverlayService.
See OverlayService
Methods |
| clearCloseCallback |
clearCloseCallback()
|
|
Removes the custom close callback
Returns :
void
|
| close | ||||||||
close(result?: any)
|
||||||||
|
Closes the overlay. The result can be accessed in the overlay component as follows: Example :
Parameters :
Returns :
void
|
| destroy |
destroy()
|
|
Destroys the overlay. This method is called by the
Returns :
void
|
| hide |
hide()
|
|
Hides the overlay. This method is called by the
Returns :
void
|
| registerCloseCallback | ||||||||
registerCloseCallback(callback: () => void)
|
||||||||
|
Registers a custom close callback. The callback must return a promise that resolves to a boolean value. Can be used to show the user a confirmation dialog before closing the overlay, e.g. if the form is invalid If the promise resolves to true, the overlay will be closed. If the promise resolves to false, the overlay will not be closed. Example :
Parameters :
Returns :
void
|
| reveal |
reveal()
|
|
Reveals the overlay. This method is called by the
Returns :
void
|