One of my primefaces dialogs is set up like this:
<p:dialog widgetVar="dlg" width="320" height="220" modal="false" closable="false" showHeader="false" resizable="false" position="right,top">
I am looking to make this dialog modal if a certain element on the page is clicked. Is there an API available for this functionality on the client side?
I attempted to use
onclick="dlg.setModal(true);"
but unfortunately, the method setModal() does not seem to exist. Is it possible to change the dialog to be modal without needing to communicate with the server again?