extjs--03--a few progress bar codes to see

Source: Internet
Author: User

/*//To complete the progress bar by a fixed time, namely: Pseudo progress bar ext.onready (function () {var ProgressBar = Ext.Msg.show ({title: "Progress Bar", Msg: "Complete progress through fixed time", width:300, Wait:true, Waitconfig: {interval:500, D        uration:5000, Fn:function () {Ext.Msg.hide ();}}, Closable:false}); }); *//* *//progress bar//updateprogress (number value, String progresstext, String msg) parameter description: Anything between Value:number 0 and 1 (default 0) PR Ogresstext:string the contents of the progress bar (default ") msg:string message box body content is replaced by the specified message (default is not defined) Ext.onready (function () {var configs = { Title: "Installation progress bar", progress:true,width:600,closable:false,msg: "Installing ... "}; Ext.Msg.show (configs); var fn_progressbar = function (v) {return function () {if (v==12) {Ext.Msg.hide ();} Else{var i = V/11; Ext.Msg.updateProgress (I,math.round (i*100) + "% completed! ", i);}}} for (var i = 1; i <; i + +) {setTimeout (Fn_progressbar (i), i*500);});           *//* * Ext.onready (function () {var MsgBox = Ext.MessageBox.show ({ Title: ' Hint ', msg: ' Dynamically updated progress bar and informational text ', Modal:true, width:300, progress:true}  var count = 0;//The number of times the scrollbar has been refreshed var percentage = 0;//Progress percent var progresstext = ';//progress bar information var                Task = {run:function () {count++;                Calculation progress percentage = COUNT/10;                Generate progress bar Text Progresstext = ' Current completion: ' +percentage*100+ '% '; Update Information Hint dialog box msgbox.updateprogress (Percentage,progresstext, ' Current time: ' +ext.util.format.date (new Date (), ' y-m-d g:                I:s A '));                    Refresh 10 times after closing the informational cue box if (count>10) {Ext.TaskManager.stop (Task);                Msgbox.hide ();    }}, interval:1000} Ext.TaskManager.start (Task);    }); */ext.onready (function () {Ext.MessageBox.progress ("Please Wait", "Data processing progress ..."), var fun = function (p) {return function () {if (P = = {Ext.mesSagebox.hide ();} else {Ext.MessageBox.updateProgress (p/20, ' processing ' + P + ', altogether 20 ');}};} for (var i = 1; i <=; i++) {SetTimeout (Fun (i), I * 1000);}});

extjs--03--a few progress bar codes to see

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.