Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to close GROWL Message on click anywhere on the message? (JSF,Primefaces)

I need to close the growl messages in my UI, if the user clicks anywhere on the message.

That is required, because the close button of the default growl messages in Primefaces is difficult to find for the user.

Is there a way of doing that?

like image 584
Johnny2012 Avatar asked Dec 12 '22 16:12

Johnny2012


1 Answers

What about solve it via CSS:

.ui-growl-icon-close {
width: 100%;
height: 100%;
background-image: none!important;
}

Put this into your CSS file.

like image 114
Ömer Faruk Almalı Avatar answered May 20 '23 07:05

Ömer Faruk Almalı