Hi, I have posted a question to http://stackoverflow.com/questions/9...sencha-touch-2
Any ideas on this one?
Thanks, in advance.
Hi, I have posted a question to http://stackoverflow.com/questions/9...sencha-touch-2
Any ideas on this one?
Thanks, in advance.
So the data is on MyApp.view.DetailsView and multple children want to use the data. So what I would do is hook into the updateData method of MyApp.view.DetailsView and take appropriate action on the children.
Just typing that off the top of my head so may not work exactly but shows what you can do.Code:updateData : function(data) { this.callParent(arguments); var img = this.down('image'), container = this.down('container[tpl]'); img.setSrc(data.image); container.setData(data); }
So the data is on MyApp.view.DetailsView and multple children want to use the data. So what I would do is hook into the updateData method of MyApp.view.DetailsView and take appropriate action on the children.
Just typing that off the top of my head so may not work exactly but shows what you can do.Code:updateData : function(data) { this.callParent(arguments); var img = this.down('image'), container = this.down('container[tpl]'); img.setSrc(data.image); container.setData(data); }
Mitchell Simoens @LikelyMitch
Modus Create, Senior Frontend Engineer
________________
Need any sort of Ext JS help? Modus Create is here to help!
Check out my GitHub:
https://github.com/mitchellsimoens