Approved
Last Updated: 07 May 2019 05:51 by ADMIN
Christoph
Created on: 30 Apr 2019 10:54
Category: Notification
Type: Feature Request
1
Allow closable notifications with auto hide

For now, notifications can be closable OR automatically hide after some time.

When talking about error notifications we want to show them for a longer time (let's say 10 seconds) to ensure, users see them. The problem is, that notifications may hide content and it would be cool, if users could manually close them after reading.

Feature request:

Allow notifications that support BOTH properties set:

  • hideAfter AND
  • closable

    public show(): void {
        this.notificationService.show({
            ...
            type: { style: 'error', icon: true },
            closable: true,
            hideAfter: 10000
        });
    }

Meaning: Hide notifications after 10 secs but allow users to close them earlier. 

 

Current behavior: https://www.telerik.com/kendo-angular-ui/components/notification/hiding-notifications/#toc-defining-a-closable-notification

 

1 comment
ADMIN
Dimiter Topalov
Posted on: 07 May 2019 05:51
Hi Christoph,

Thank you for submitting this feature request. We will track it here, and consider providing such a functionality as a built-in feature depending on the customer demand.

Meanwhile you can implement a custom solution, based on the Nofitication Template that allows for providing a custom "close" button or icon with the desired functionality, e.g.:

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

I hope this helps.

Regards,
Dimiter Topalov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.