EasyUI Forum

General Category => General Discussion => Topic started by: Jonny on October 18, 2015, 01:59:27 AM



Title: How to hide / unhinde the "close button" in Dialog's Title Bar ?
Post by: Jonny on October 18, 2015, 01:59:27 AM
Dear Sir/Madam,

       For some situation i don't allow user to click CLOSE button located on title bar in DIALOG  (position top right )

Is anyone know the way to HIDE / UNHIDE it ?
I did not find any command in documentation ...

Please help me..
Thanks in advanced.

Regards,
JONNY


Title: Re: How to hide / unhinde the "close button" in Dialog's Title Bar ?
Post by: jarry on October 18, 2015, 04:08:29 AM
Please set the 'closable' property to false to disable the close button on the title bar.
Code:
$('#dlg').dialog({
  closable: false
});


Title: Re: How to hide / unhinde the "close button" in Dialog's Title Bar ?
Post by: Jonny on October 18, 2015, 07:51:34 AM
          Thank you very much for the help, Master Jarry..

Dialog title's Close Button is now disappear totally....

The very simple command, but useful.  :)


Regards,
JONNY