Chapter 10. Patterns in Ext JS
In this chapter, you will learn the following recipes:
Sharing functionality with the
Action
classAutosaving form values
Saving resources with lazy component instantiation
Extending a class
Using code modules to achieve encapsulation
Implementing a publish/subscribe mechanism with
relayEvents()
Augmenting a class with a plugin
Building preconfigured classes
Implementing state preservation with cookies
Introduction
In this chapter, you will explore some additional design patterns used to build robust and flexible applications with Ext JS. Besides autosaving form elements and component state management, you will be able to take a look at the patterns for building your own custom components on top of the Ext framework, along with ways for modularizing your code.