extjs - How to attach an On Click event for Icon In Ext.js -
i have ext.js container header , header contains text title , icon . used refresh tab . how can icon click event container header ? ive used icon: '@url.content("~/images/icon-supp.png")',
getting icon next text. here code:
'tabchange' activates when tab changed , not while clicked on icon.
more information : have center container . im adding ext.tab.panel , has
items: [ { xtype: 'container', title: 'footext', id: 'foopanel', icon: '@url.content("~/images/icon-refresh.png")', tools: [{ type: 'help', handler: function(){ //doesnt hit on click of tab } }, { itemid: 'refresh', type: 'refresh', hidden: true, handler: function(){ //doesnt hit on click of tab } } }], listeners: { activate: function () { //this hits once when tab gets activated./ alert('you clicked me'); }, click:function(){//doesnt work}, }, handler:function(){//doesnt work}, autoscroll: true, },
now need handel event on click of image icon. possible ?
finally went on using html image button on title , handling onclick event.as such
title: 'footitle <input type="image" style="float: right;padding-left:10px; height: 15px;width:30px; " src="images/icon-refresh.png" onclick="refreshfootab()"></input>', function refreshfootab() {...}
Comments
Post a Comment