第一个Sencha Touch2应用 Hello World!

最近在学习Sencha Touch2,简单分享一下自己的学习心得。

第一个应用 Hello World!

Ext.application({
    name: 'HelloWorld',

    launch: function() {
        Ext.create("Ext.tab.Panel", {
            fullscreen: true,
            items: [
                {
                    title: 'Home',
                    iconCls: 'home',
                    html: 'Hello World!'
                }
            ]
        });
    }
});

 

运行界面如下:

页面运行时自动调用launch方法,launch创建一个Ext.tab.Panel,fullScreen全屏显示。
posted @ 2012-07-01 15:42  LegendWind  阅读(1091)  评论(1编辑  收藏  举报