Ext 备忘录

1.工具栏 text 位置在中间

bbar: [{
        	xtype : 'displayfield',
        	width : 450

        },{
        	text:"确定"
        		

	          
	    },'-',
	    {
	    	text: "取消 "
	    		 
    } 
	   ]


2.TabPanel的使用

var tabs = new Ext.TabPanel({
    renderTo: 'my-tabs',
    activeTab: 0,
    items:[
        {contentEl:'tab1', title:'Tab 1'},
        {contentEl:'tab2', title:'Tab 2'}
    ]
});

// Note that the tabs do not have to be nested within the container (although they can be)
<div id="my-tabs"></div>
<div id="tab1" class="x-hide-display">A simple tab</div>
<div id="tab2" class="x-hide-display">Another one</div>


 

你可能感兴趣的:(Ext 备忘录)