Sench Touch Template

by el_chief

HTML

<link rel="stylesheet" href="//extjs.cachefly.net/touch/sencha-touch-2.0.1/resources/css/sencha-touch.css">
<script src="//extjs.cachefly.net/touch/sencha-touch-2.0.1/sencha-touch-all-debug.js"></script>

JavaScript

/* this is a function to simulate ajax requests in jsfiddle */
function sim(proxy, data, delay) {
    if (typeof data !== 'string') {
        data = Ext.JSON.encode(data);
    }

    proxy.setUrl('/echo/json/');
    proxy.setExtraParams({
        json:data,
        delay: typeof delay === 'undefined' ? 0 : delay
    });
    proxy.setActionMethods({read:'POST'});
}

Ext.application({
    name: 'App',

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