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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -