ExtJS 之Panel实例

转载自:http://rhyme.blog.51cto.com/328158/81339

 

  <div id="hello"></div>    
        <script>
//                         panel
                        Ext.onReady(function(){   
                                            new Ext.Panel({  
                                                renderTo:"hello", //DIV的ID 
                                                title:"面板头部header", //标题 
                                                width:300,  
                                                height:200,  
                                                html:'<h1>面板主区域</h1>',
                                                tbar:[{text:'顶部工具栏topToolbar'}],
                                                bbar:[{text:'底部工具栏bottomToolbar'}],
                                                buttons:[{text:"按钮位于footer"}]
                                                
                                       });
                        });

 

posted @ 2013-02-19 13:38  Peter_youny  阅读(155)  评论(0编辑  收藏  举报