在extjs中,我想将Ext.ProgressBar 加入号panel中,而panel又是在window下的,我该如何做呢?请高手赐教!

2024-12-19 23:01:04
推荐回答(1个)
回答1:

var pbar = new Ext.ProgressBar({
id:'pbar',
hidden:true,
width:280,
text:'请稍后...'
});

var panel = new Ext.Panel({
width:280,
height: 128,
items: [pbar]
});

var win = new Ext.Window({
title : "test",
closable : true,
resizable:false,
modal:true,
width : 404,
height : 228,
plain : true,
items: [panel]
});
win.show();