Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

primefaces modal dialog: How to disable the 'X' close button

Referring to the example for PrimeFaces to create a modal dialog, http://www.primefaces.org/showcase/ui/dialog.jsf

This creates a modal dialog with a 'X' close button at the right corner. I want a solution to disable this close button for PrimeFaces dialog.

Any help will be much appreciated.

like image 940
akhouri Avatar asked Nov 14 '13 05:11

akhouri


2 Answers

You can just add closable="false" to your p:dialog. Then you will not have the 'X' close Button.

like image 55
miroslav_mijajlovic Avatar answered Sep 28 '22 18:09

miroslav_mijajlovic


You can use this way: [closable]="false" to your <p-dialog>, because primeNg is expecting it as a key of the object.

like image 35
VIPIN KUMAR Avatar answered Sep 28 '22 18:09

VIPIN KUMAR