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

别说谁变了你拦得住时间么 提交于 2019-12-06 07:10:51

问题


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?


回答1:


What about solve it via CSS:

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

Put this into your CSS file.



来源:https://stackoverflow.com/questions/15710079/how-to-close-growl-message-on-click-anywhere-on-the-message-jsf-primefaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!