Note that there are some explanatory texts on larger screens.

plurals
  1. POSencha Touch-- List in TabPanel not working
    primarykey
    data
    text
    <p>So, I just started working with Sencha Touch. I want to include a list in a TabPanel but for some reason it isn't working. Please help. Thanks!</p> <p>HTML:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Hello World&lt;/title&gt; &lt;script src="lib/touch/sencha-touch.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="app/app.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="app/rosterData.js" type="text/javascript"&gt;&lt;/script&gt; &lt;link href="lib/touch/resources/css/sencha-touch.css" rel="stylesheet"type="text/css" /&gt; &lt;link href="app/myAppStyle.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt;&lt;/body&gt; &lt;/html&gt; </code></pre> <p>Javascript:</p> <pre><code>MyApp=new Ext.Application({ name: 'MyApp', launch: function() { MyApp.tabbedView= new Ext.TabPanel({ cardSwitchAnimation: 'slide', tabBar: { dock: 'bottom', layout: { pack: 'center' } }, items: [{ title: "Schedule", cls: 'card', iconCls: 'time', style: "background-color: #000", }, { title: "Roster", layout: 'fit', cls: 'card', iconCls: 'team', xtype: 'list', store: MyApp.RosterStore, itemTpl: '&lt;div class="contact"&gt;&lt;strong&gt;{firstName}&lt;/strong&gt; {lastName}&lt;/div&gt;' style: "background-color: #aaa", }, { title: "Info", html: "Bye", cls: 'card homeScreen', iconCls: 'info', style: "background-color: #aaa", } ] }); Ext.regModel('PlayerName', { fields: ['firstName', 'lastName'] }); MyApp.RosterStore= new Ext.data.Store({ model: 'PlayerName', data: [ {firstName: "Shivam", lastName: "Thapar"}, {firstName: "Last", lastName: "First"}, {firstName: "Bob", lastName: "Smith"} ] }); MyApp.Viewport= new Ext.Panel({ fullscreen: true, layout: 'fit', style: "background-color: #fee", items: [MyApp.tabbedView] }); } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload