UNPKG

@progress/kendo-angular-popup

Version:

Kendo UI Angular Popup component - an easily customized popup from the most trusted provider of professional Angular components.

45 lines (44 loc) 1.72 kB
/**----------------------------------------------------------------------------------------- * Copyright © 2025 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { ComponentRef, EventEmitter } from '@angular/core'; import { PopupComponent } from '../popup.component'; /** * Holds references to the object instance of the Popup. * Controls Popups opened through `PopupService` ([see example]({% slug api_popup_popupservice %}#toc-open)). */ export interface PopupRef { /** * Provides a reference to the Popup instance. */ popup: ComponentRef<PopupComponent>; /** * Provides a reference to the HTML element of the Popup. */ popupElement: HTMLElement; /** * Provides a reference to the child component of the Popup. Available when the Popup opens with [`content`]({% slug service_popup %}#toc-using-components). */ content: ComponentRef<any>; /** * Closes and destroys the Popup. */ close: Function; /** * Fires when the anchor scrolls outside the screen boundaries ([see example]({% slug closing_popup %}#toc-after-leaving-the-viewport)). */ popupAnchorViewportLeave: EventEmitter<any>; /** * Fires after the component closes. */ popupClose: EventEmitter<any>; /** * Fires after the component opens and the opening animation ends. */ popupOpen: EventEmitter<any>; /** * Fires after the component opens and the Popup is positioned. */ popupPositionChange: EventEmitter<any>; }