Do not move with Mouse the <p:dialog>

Asked

Viewed 90 times

0

Stupid question however I did not find in any corner, I would like to not allow the user to move the open p:dialog.

<p:dialog header="#{MyBean.select.projetos.nome}" widgetVar="lanDialog" modal="false" showEffect="blind" resizable="false">
 ...meu código...
</p:dialog>

1 answer

2


Just add the attribute draggable as false.

For example:

<p:dialog header="#{MyBean.select.projetos.nome}" widgetVar="lanDialog" modal="false" 
          showEffect="blind" resizable="false" draggable="false">
    <!-- códigos -->
</p:dialog>

On page 181 of documentation has more component specifications. You can also download the full documentation from Primefaces here.

  • This ae @Luidne

  • Thank you very much! had not found on the internet any example.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.