日期:2014-05-16 浏览次数:20611 次
Ext.onReady(function () {
var winp;
var button = Ext.get('show-btn');
button.on('click', function () {
if (!winp) {
var win = new Object();
win.applyTo = 'Container';
win.layout = 'fit';
win.width = 500;
win.height = 300;
win.closeAction = 'hide';
win.plain = true;
win.items = new Ext.TabPanel(
{
applyTo: 'hello-tabs',
autoTabs: true,
activeTab: 0,
deferredRender: false,
border: false
});
win.buttons = [];
win.buttons.push({text:'Submit',disabled:true});
win.buttons.push({text:'Close',handler:function(){winp.hide();}});
}
winp = new Ext.Window(win);