EasyUI Forum
March 28, 2024, 10:47:34 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: Maximize on double clicking the title bar of the dialog  (Read 3462 times)
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« on: May 02, 2018, 06:13:31 AM »

I have tried to use this code for maximizing the dialog, but it does not work. One addition I would like is to change the cursor style when we hover over the title bar.

Code:
var dlg = $('#dlg');
dlg.dialog('header').bind('dblclick', function(e){
var opts = dlg.dialog('options');
if (opts.maximized){
dlg.dialog('restore');
} else {
dlg.dialog('maximize');
}
})

Please help.

Regards,
Dove
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 02, 2018, 06:11:46 PM »

Please look at this example http://code.reloado.com/ajoduz3/edit#preview. It works fine.
Logged
Alfred
Full Member
***
Posts: 134


-Licensed User-


View Profile
« Reply #2 on: May 02, 2018, 06:57:22 PM »

How do I change the cursor style when hover over the title bar? The default cursor style is move cursor. How can I change it to a normal cursor? Thanks for the demo. I used the onLoad, now it works.
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!