javascript - Sencha Touch itemtap Detailsview -


i'm getting mad one, have list in sencha touch 2, , have function in controller file, control tap on list , create new view information, here's controller file code:

ext.define('myapp.controller.details', { extend: 'ext.app.controller',  config: {     refs: {          placescontainer:'placescontainer'     },     control: {          'placescontainer places list':{              itemtap: function(list,index,target,record) {                  console.log("item "+record.get('name')+" pigiato");                  var detailsview = ext.create('myapp.view.details');                  this.getplacescontainer().push(detailsview);                  detailsview.setdata(record.data);                  detailsview.getat(0).setdata(record.data); // set data first component in items array                  detailsview.getat(1).setdata(record.data); // set data second component in items array                  detailsview.getat(2).setdata(record.data); // set data second component in items array              }          }     } } 

});

now... how can specify , set title of details view name of list item tapped?? can help?? thank you!

just this

var detailsview = ext.create('myapp.view.details', {   title: record.get('name') }); 

hope helps


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -