View Full Version : XTemplate with button elements, how to add listeners

17 Aug 2016, 3:22 AM

I have this old project where we use ExtJS 3.4, we have a grid with one column rendered from an XTemplate, that XTemplate contains HTML buttons which I want to wire up to ExtJS so I can do something with them, before we have a tooltip with a delegate, how can I transform that tooltip delegate into my button elements as I understand it most of ExtJS require us to use Ext.get(elm or ID) which is not feasible in this situation.

TLDR; grid with column that has own renderer, uses XTemplate with button elements and I need to wire the template buttons to an event listener.

Thanks in advance