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

closable Tooltip

1 Answer 68 Views
Tooltip
This is a migrated thread and some comments may be shown as answers.
Pooja
Top achievements
Rank 1
Pooja asked on 04 May 2020, 12:45 PM
The tooltip is not getting close when we click out of tooltip when the property closable is set to true.

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 06 May 2020, 05:36 AM

Hi Pooja,

I will begin with providing some general information on the default behavior of the Notification.

Basically, once a closable Notification is opened it can be closed by clicking the "X" button located in the end of the Notification. Here is an example demonstrating that behavior:

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

A Notification that isn't closable closes itself after a few seconds automatically. But clicking off the Notification doesn't close it. You can see that behavior by setting the closable property to false in the above example:

 

    public showNotification(): void {
        this.notificationService.show({
            closable: false,
            content: `Hi! I am info notification`,
            type: { style: 'info', icon: true }
        });
    }

 

Could I ask you to provide a bit more details about the specific use-case scenario. Thank you in advance. That will help us to better understand it and we will be able to provide some further suggestions on this case. Could you let us know if the requirement allows to have multiple Notifications shown at once? Also what is the required behavior when clicking off the Notifications? Should all of them be closed or only a specific one should be closed? Thank you.

Regards,
Svetlin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Tooltip
Asked by
Pooja
Top achievements
Rank 1
Answers by
Svet
Telerik team
Share this question
or