EasyUI Forum
May 05, 2024, 06:48:48 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 prevent a modal drawer from closing?  (Read 988 times)
JeroenvdV
Newbie
*
Posts: 21


View Profile Email
« on: January 13, 2023, 12:59:46 AM »

Hi,

Is it possible to prevent the modal Drawer from closing and/or collapsing?
I tried the onBeforeClose and onBeforeCollapse events, but they do not seem to be available for the Drawer plugin. The code below does not prevent the drawer from closing/collapsing.

Any ideas?

Code:
    
$('#additional-info').drawer({
        title: ' ',
        closable:true,
        modal:true,
        onBeforeCollapse: function(){
            // Do some checks...
            return false;
        },
        onBeforeClose: function(){
            // Do some checks...
            return false;
        }
    });
« Last Edit: January 15, 2023, 12:39:11 PM by JeroenvdV » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: January 16, 2023, 07:18:48 AM »

This issue has been solved. Please update to the latest version.
Logged
JeroenvdV
Newbie
*
Posts: 21


View Profile Email
« Reply #2 on: January 16, 2023, 08:40:51 AM »

Works like a charm!

Many thanks!
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!