EasyUI Forum
May 07, 2024, 04:55:45 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: Messager Progress with Cancel Button  (Read 8266 times)
arma
Full Member
***
Posts: 110


View Profile
« on: October 15, 2013, 07:10:36 PM »

Hi,

Is it possible to add cancel button below messager progress with callback, so i can do cancel action if a process takes long to finish ?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 15, 2013, 08:04:08 PM »

Re-create the progress window with additional properties, the code below shows how to add a stop button on title bar.
Code:
var win = $.messager.progress({
title:'Please waiting',
msg:'Loading data...'
});
win.window({
tools:[{
iconCls:'icon-cancel',
handler:function(){
$.messager.progress('close');
//other code here
}
}]
});
Logged
arma
Full Member
***
Posts: 110


View Profile
« Reply #2 on: October 15, 2013, 08:06:51 PM »

That's nice. 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!