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的使用

相关文章
相关标签/搜索