extjs - Sencha Touch 2 - Creating a list with static views -


I have followed the documents given by Senka and have made themselves a list of items, conversion to Naviwiewview and The following details page This is a multiple-solution and is described with the picture below:

 multiple-to-1 solution

With this solution I can send the title of the item in the list to the description, and write something like this: [code ] 'Ext.define' ('Navigation. Overview.President Details', Extend: 'Ex. Penile', xtype: 'presidentdetail',

  Config: {styleHtmlContent: true, scrollabe: Vertical ', headline:' description ', tpl:' hello {firstName}! '}   

}); `[/ Code]

It seems that I can not use the statement in this code, so I can specify which item I click on, depending on what content I want Then my question is how do I create another persistent perspective in it? Can I make 1-to-1 relationships instead? (See image below)

1-to-1 solution

How does anyone know how to achieve this? I am currently using MVC and it is currently the "mine" (Read: Sankas) controller which is to hang it:

  Ext.define ('navigation controller.Main 'Expansion:' extension.controller ', config: {refs: {main:' mainpanel '}, Control: {' President list ': {disclose:' showDetails'}}}, showDetails: function (list, record) { This.getMain () .Push ({xtype: 'presidentdetail', data: record.data})}}   

});

This problem is now resolved, and I thought it would be very easy. I saw the itemtap event in the docs and used the index of item as an id and wrote this small snippet. showDetailsonItemTap: function (list, index, target, record) {var page; Switch (index) {case 0: page = 'presidential post'; break; Case 1: Page = 'Expansion of the President'; break; } This.getMain () Push ({xtype: page, data: record.data}); Console.log (index); }

After that, it just manually creates the scene and hit your xtype within the switchatainment.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -