tpl and update method in Sencha Touch -
in app using tpl not working: can 1 tell me , wrong?
inside config :
{ id: 'content', tpl: "<div class='attorney-details'>hi:{details}</div>" }, and update method :
update: function(newrecord) { if (newrecord) { currentview=this.getrecord().data; this.down('#content').setdata(newrecord.data); } } at output not "hi" printed. also, if alert added in update method not executed. thanks.
the first step make sure update method executed. not enough info figure out going on code. looks update method located inside view reference this.down, need make sure component using has access store. if don't can pass object update template http://new.senchafiddle.com/#/7mamv/.
Comments
Post a Comment