ExtJs 进度条

来源:互联网 发布:java ee8 编辑:程序博客网 时间:2024/05/18 01:43
var progressBar = Ext.Msg.show({ title : '请稍等',msg : '加载中...',    width : 200,    wait: true,    progress : true,    waitConfig: { interval: 500 /*,duration: 5000 , fn: function () { Ext.Msg.hide(); } */ },});


Ext.window.MessageBox 可以使用updateProgress 方法更改进度条进度:

updateProgress( [Number value], [String progressText], [String msg] ) : Ext.window.MessageBox

更新一个进度样式消息盒子的文本和进度条。 只有相关的消息框 开始需要progress或者wait, 或者通过呼叫show为progress: true.

Parameters

  • value : Number (optional)

    0和1之间的任何值(e.g., .5)

    Defaults to: 0

  • progressText : String (optional)

    显示在进度条内部的进度文本。

    Defaults to: ""

  • msg : String (optional)

    消息盒子的主题文本被指定的字符串替代(默认为undefined 因此在一个新的值被传进来之前,任何存在的主题文本默认情况下都不会被覆盖)

msgBox.updateProgress

0 0
原创粉丝点击