View Full Version : How to expand basic classes without new?

28 Oct 2013, 12:06 AM
I want to add a property 'tooltip' for each element in the ExtJS library and put there a listener 'render'. The listener will do some work with that property if it's set.

So how can I expand the basic class Ext.Component to make this stuffs? Or suggest me better ideas please, cause this one looks grot.

Sorry for my poor English :D

28 Oct 2013, 3:49 AM
You can define an override for Ext.Component. Instead of adding tip in autoRender phase, you may want to replace base render tpl (don't remember which one exactly) and inject that string into data object.