1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
function ajout(){
if(!win){ //vérifie l'éxistence de celle ci avant de l'ouvrir
win = new Ext.Window({
applyTo:'hello-win',
layout:'fit',
width:800,
height:500,
closeAction:'hide',
plain: true,
items: new Ext.TabPanel({
autoTabs:true,
activeTab:0,
deferredRender:false,
border:false,
items: [{
title: 'Tab1',
html: 'Premier tab'
},{
title: 'Tab2',
html: 'Second tab'
},{
title: 'tab3',
html: 'Troisième tab'
}
}]
}),
minimizable : true,
maximizable : true,
html: '<iframe name="iframe" width="100%" height="100%" frameborder=0 scroling="no" src="logo.htm">',
buttons: [{
text:'Submit',
disabled:true
},{
text: 'Close',
handler: function(){
win.hide();
}
}]
});
}
win.show(this);
} |
Partager