防溢乳垫怎么用图解:ExtJs Panel Ajax

来源:百度文库 编辑:九乡新闻网 时间:2024/04/27 01:36:06

<%@ include file="/include/main.jsp" %>
<%
 %>

<%=appTitle%>
  
 

  
 


  
 
var mytest = [{'title': 'aaaa','html':'aaaa1'},{'title': 'bbbb','html':'bbbb2'},{'title': 'cccc','html':'cccc3'}] ;
 
 
  
Ext.onReady(function(){
 
     var _panel = new Ext.Panel({
                title:"Employee Info",
                region: 'west',
                frame:true,
         collapsible: true,
         border: false,               
                width:200,            
                layout:"accordion",
                layoutConfig: {
                 animate: true
               },items:mytest
               
            }
         );
   new Ext.Viewport({
       layout: 'border',
       items: [_panel, {
           region: 'south',
           title: 'Title for Panel',
           collapsible: true,
           html: 'Information goes here',
           split: true,
           height: 100,
           minHeight: 100
       },{
           region: 'center',
           xtype: 'tabpanel',
           items: [{
               title: 'Default Tab',
               html: 'The first tab\'s content. Others may be added dynamically'
           },{
               title: 'Default Tab2',
               html: 'The first tab\'s content. Others may be added dynamically2'
           }]
       }]
   });   
 
    
    });