sencha touch - How do I call a function from innerhtml of an ExtJS component -
i have component in extjs setting html , there onclick inside have call. how call javascript function html of extjs component
this code:
for component:
collapsed: true, layout: 'fit', items: [ { xtype: 'component', itemid: 'requirementheaderviewid-' + i, html: arrreqtpltest } } ); this html:
arrreqtpltest = ['<div class="wrap-req"><table><tr><th class="wrap-req">' + 'name ' + '<img src="resources/images/arrow-bottom-1-512.png" width="10px" height="10px" onclick="{[this.sortstore();]}"/>' + '</th><th class="wrap-req">category ' + ' <img src="resources/images/arrow-bottom-1-512.png" width="10px" height="10px" onclick="sortstore();"/>' +</th>'</table>', </th></tr></table></div> this function lets say:
sortstore: function(){ alert('xyz'); } i have shortened code ease, might have syntax errors rest assured fine need know how call js function html part of ext.js component after page loaded.
Comments
Post a Comment