concept extension in category ext js

This is an excerpt from Manning's book Ext JS in Action, Second Edition.
To better utilize the framework, you must understand in finer detail how the life cycle works. This is especially important if you’ll be building extensions, plug-ins, or composite components. Quite a few steps take place at each phase of the life cycle, which is controlled by the base class, Ext.Component.
Next, you’ll see that though extensions solve problems, they can create inheritance issues when similar functionality is desired across multiple widgets. Once you understand the basic limitations of extensions, you’ll convert your extension into a plug-in, where its functionality can easily be shared across the grid panel and any of its descendants.
Other extensions add features such as utility methods or embed behavioral logic inside the class itself. An example of this would be a form panel that automatically pops up a message box whenever a save operation failure occurs. I (Jay) often create extensions for applications for this very reason, where the widget contains limited built-in behavioral logic. I say limited, because with Ext JS 4.0 you now have an MVC architecture for which you can abstract business logic to controllers. This is something we’ll explore in the next chapter.
My favorite kind of extension is what I like to call a composite widget, which combines one or more widgets into one class. An example of this would be a window that has an embedded grid panel, or a form panel that embeds a tab panel to spread its fields over multiple tabs.
This is the type of extension that we’ll focus on now. You’ll merge a grid panel with a menu.