¼¸¸öС¹¦ÄÜ
Ext.onReady(function(){
var win = new Ext.Window(
{
title:'hello',
width:300,
height:450,
html:'<h1>helloe</h1>'
});
//win.show(); //windowÏÔʾ
//creatPanel();
//creatPanelExt();
createExtTool();
});
function creatPanel()
{
var panel = new Ext.TabPanel({
width:300,
height:500,
items:
[
new Ext.Panel({title:'hello1',height:200, width:200}),
new Ext.Panel({title:'hello2',height:150, width:200}),
new Ext.Panel({title:'hello3',height:200, width:200})
]
});
panel.render("hello");
}
function creatPanelExt()
{
var panelExt = new Ext.Panel({
renderTo:'hello',
title:'Ãæ°åÍ·²¿',
width:300,
height:300,
html:'hello java',
tbar:[{text:'ÎÒÊǹ¤¾ßÀ¸'}],
bbar:[{text:'ÎÒÊÇ״̬À¸'}],
buttons:[{text:'ÎÒÊÇ°´Å¥'}]
});
}
function createExtTool()
{
var createTool = new Ext.Panel({
renderTo:'tool',
title:'hellojava',
width:300,
height:300,
tools:[
{id:'save'},
{id:'help',handler:function(){Ext.Msg.alert('help','Çë°ïÖú')}},
{id:'close'}
],
tbar:[{pressed:true,text:'Ë¢ÐÂ'}]
});
}