Ê×Ò³ Ê«´Ê ×Öµä °å±¨ ¾ä×Ó ÃûÑÔ ÓÑ´ð ÀøÖ¾ ѧУ ÍøÕ¾µØÍ¼
µ±Ç°Î»ÖÃ: Ê×Ò³ > ½Ì³ÌƵµÀ > ÍøÕ¾¿ª·¢ > Webǰ¶Ë >

EXTѧϰ֮·-ʵսPanel

2012-11-09 
EXTѧϰ֮·----ʵսPanel¼¸¸öС¹¦ÄÜExt.onReady(function(){var win new Ext.Window({title:hello,wi

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




ÈȵãÅÅÐÐ