PDA

View Full Version : How to extend and override without creating an extension or override.



jay@moduscreate.com
18 Sep 2009, 5:30 AM
MaMany times Ext JS developers are required to extend or add functionality to a widget in the framework. Some of the solutions include creating an actual extension using Ext.extend or even creating a plugin. If the requirement is a only for a single-use and is relatively simple to implement, creating an extension or plugin class is overkill. So the question is, what is the best solution for this type of situation?

I say it’s override and extend on-the-fly at the configuration object, which is possible for just about every class in the framework. We’ll go into exactly how this works in just a bit. Before that, I’d like for you to ponder a simple requirement, and we’ll explore an extremely simple one-off solution.

http://tdg-i.com/202/how-to-extend-and-override-without-creating-an-extension-or-override