EasyUI Forum
September 14, 2025, 03:43:05 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to hide / unhinde the "close button" in Dialog's Title Bar ?  (Read 12493 times)
Jonny
Newbie
*
Posts: 38


View Profile Email
« 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
Logged
jarry
Administrator
Hero Member
*****
Posts: 2298


View Profile Email
« Reply #1 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
});
Logged
Jonny
Newbie
*
Posts: 38


View Profile Email
« Reply #2 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.  Smiley


Regards,
JONNY
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!