This is a migrated thread and some comments may be shown as answers.

Notification close event

1 Answer 45 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 28 Jan 2020, 07:22 AM
Is there anyway to access a notification close event? I need to know when a user has clicked on the notification close button.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 28 Jan 2020, 03:14 PM

Hello Andrew,

The developer can store a reference to the Notification reference, returned from the service's show() method, and access the actual component instance to subscribe to its close event, e.g.:

https://stackblitz.com/edit/angular-mbs3oq?file=app/app.component.ts

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik

Get quickly onboarded and successful with your Telerik and Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Notification
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or