extjs - Setting active items in sencha touch container -


i new in developing sencha touch 2 , have container contains list of merchants

my container has following code

ext.define('wl.view.tablet.container2', {      extend: 'ext.container',     xtype: 'tabletcontainer2',      config: {          layout: 'card',          items: [             {                 xtype: 'merchants',                 docked: 'left',                 width: 320,                 style: 'border-right: 2px solid #000'             },             {                 xtype: 'container',                 cls: 'tabletsplash',                 flex: 1             }         ]     } }); 

i want show list of merchants products along side merchants list when of merchants in list tapped, 2 lists displayed side side

i tried use following code achieve

    var products = ext.widget('products');     ext.widget('tabletcontainer').setactiveitem(products); 

but isn't working expected me , ideas on how set active item inside container?

i not sure products or tabletcontainer in code if want add view view card layout, here do:

var prods = ext.getcmp("wl.view.tablet.products"); ext.getcmp("tabletsplashid").animateactiveitem(prods, {type: 'slide', direction: 'left', duration : 500}); 

where tabletsplashid id of container in want set view.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -