@progress/kendo-angular-notification
Version:
Kendo UI Notification for Angular
34 lines (33 loc) • 1.4 kB
TypeScript
/**-----------------------------------------------------------------------------------------
* Copyright © 2025 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the project root for more information
*-------------------------------------------------------------------------------------------*/
import { ComponentRef } from '@angular/core';
import { NotificationComponent } from '../index';
import { Observable } from 'rxjs';
/**
* Holds references to the object instance of the Notification.
* Controls the Notifications which you open through `NotificationService`.
* For an example on sample usage, refer to the
* [`NotificationService.show`]({% slug api_notification_notificationservice %}#toc-show) method.
*/
export interface NotificationRef {
/**
* Notifies when the Notification instance is hidden and the hiding animation ends.
*/
afterHide?: Observable<any>;
/**
* A reference to the Notification instance.
*/
notification?: ComponentRef<NotificationComponent>;
/**
* A reference to the child component of the Notification.
* Available when you show the Notification with
* [`content`]({% slug content_notification %}#toc-rendering-a-component).
*/
content?: ComponentRef<any>;
/**
* Hides and destroys the Notification.
*/
hide: Function;
}