EasyUI Forum
October 19, 2025, 05:03:55 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: feature request for dialog  (Read 9118 times)
iceh
Jr. Member
**
Posts: 61


View Profile
« on: December 06, 2013, 12:02:07 PM »

a simple feature request for dialogs

a -> onBeforeClose Hook

like in the window class. this makes it more usefull to handle clicks on the
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 06, 2013, 06:00:50 PM »

The 'onBeforeClose' event already exists. Please try the code below.
Code:
<div class="easyui-dialog" title="MyDialog" style="width:250px;height:200px;padding:10px;"
data-options="
onBeforeClose:function(){
alert('before close')
}
">
</div>
Logged
iceh
Jr. Member
**
Posts: 61


View Profile
« Reply #2 on: December 07, 2013, 12:29:44 AM »

Thank you!
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!