sencha touch charts Sencha Touch 1.0 工做筆記

1. 如何修改 panel 中的html 值html

    對panel  設置 id,  使用: Ext.getCmp('   id ').update(html);  來修改html佈局

2. 修改 items 中的值
學習

var pane = new  Ext.Panel({
		   	id:"contnet",
            fullscreen: true,
            layout: {
                type: 'vbox',
                align: 'stretch'
            },
            defaults: {
                flex: 1
            },
            items: []
        });
		
		// var panel = Ext.getCmp('content');  
       	// pane.removeAll();
		
        pane.items.each(function(item){  
            panel.remove(item)  
        });  
		
        pane.insert(0, carousel1)  
        pane.doLayout();

    3.佈局:flex

Sencha Touch 快速入門2.0 第三章 佈局(1)Box佈局

ExtJS4學習筆記之HBox的使用

相關文章
相關標籤/搜索