Note that there are some explanatory texts on larger screens.

plurals
  1. POSencha Touch List Component Inside Tabbed Toolbar
    text
    copied!<p>I am working with the Sencha touch framework and there list item component. I have only been working with this for about 2 weeks now and I can not figure out how to get the "onItemDisclosure" to open up the "detailPanel". I am trying to follow this example: <a href="http://vimeo.com/19245335" rel="nofollow">http://vimeo.com/19245335</a>. I have pasted my code below. Any help is very much appreciated. </p> <pre><code> GoW3Guide.views.detailPanel = Ext.extend(Ext.Panel, { id: 'detailpanel', tpl: 'Hello, {firstName}!', dockedItems: [ { xtype: 'toolbar', items: [{ text: 'back', ui: 'back', handler: function() { GoW3Guide.Viewport.setActiveItem('disclosurelist', {type:'slide', direction:'right'}); } }] } ] }); Ext.reg('detailPanel', GoW3Guide.views.detailPanel); GoW3Guide.views.listPanel = Ext.extend(Ext.List, { id: 'disclosurelist', store: GoW3Guide.ListStore, itemTpl: '&lt;div class="contact"&gt;{firstName} {lastName}&lt;/div&gt;', grouped: true, onItemDisclosure: function(record, btn, index) { GoW3Guide.views.detailPanel.update(record.data); GoW3Guide.views.Guidescard.setActiveItem('detailpanel'); } }); Ext.reg('listPanel', GoW3Guide.views.listPanel); GoW3Guide.views.Guidescard = Ext.extend(Ext.Panel, { fullscreen: true, layout: 'card', cardSwitchAnimation: 'slide', initComponent: function() { Ext.apply(this, { items: [GoW3Guide.views.listPanel, GoW3Guide.views.detailPanel] }); GoW3Guide.views.Guidescard.superclass.initComponent.apply(this, arguments); } }); Ext.reg('guidescard', GoW3Guide.views.Guidescard); </code></pre>
 

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