µ±Ç°Î»Ö㺠´úÂëÃÔ >> WebÇ°¶Ë >> EXTѧϰ֮·-ʵսPanel
  Ïêϸ½â¾ö·½°¸

EXTѧϰ֮·-ʵսPanel

Èȶȣº309   ·¢²¼Ê±¼ä£º2012-11-09 10:18:47.0
EXTѧϰ֮·----ʵսPanel
¼¸¸öС¹¦ÄÜ

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:'Ë¢ÐÂ'}]
    });
}




  Ïà¹Ø½â¾ö·½°¸