EasyUI Forum
December 14, 2024, 04:29:00 PM *
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 Update  (Read 26702 times)
jwilliquor
Newbie
*
Posts: 15


View Profile
« on: September 28, 2012, 02:49:26 PM »

How can I manually set the amount of progress displayed for a $.messager.progress progress bar?

Thanks
Justin
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: September 28, 2012, 05:34:47 PM »

The 'bar' method can be called to get the progressbar object, and then call 'setValue' method for this progressbar object to set a new progress value.
Code:
$.messager.progress({
  title: 'Please waiting',
  msg: 'Processing...',
  interval: 0  // disable auto update progress value
});
var bar = $.messager.progress('bar');  // get the progressbar object
bar.progressbar('setValue', 60);  // set new progress value
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!