sencha touch charts Sencha Touch 1.0ワークノート

753 ワード

1.panelのhtml値の変更方法
パネルにidを設定し、:Ext.getCmp('id')を使用します.update(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.レイアウト:
Sencha Touch快速入門2.0第三章レイアウト(1)Boxレイアウト
ExtJS 4学習ノートのHBOXの使用