Book Image

Ext JS Essentials

By : Stuart Ashworth , Andrew Duncan
Book Image

Ext JS Essentials

By: Stuart Ashworth , Andrew Duncan

Overview of this book

<p>Ext JS 5 is a heavyweight JavaScript framework used by millions to build rich and interactive web applications. Its numerous widgets and advanced data package make it especially well-suited for enterprise class software. The framework encourages the creation of good architectures and is extremely customizable.</p> <p>Ext JS Essentials is aimed at giving you a fast-track understanding of Ext JS. This book covers the most important aspects of the framework in a concise but comprehensive way, ensuring your success using its many features.</p> <p>Written around an example application, the book is packed with practical insights into how the framework works, architecting your applications, working with data, and the many widgets on offer.</p>
Table of Contents (17 chapters)
Ext JS Essentials
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Cross-class communication with events


Your Ext JS application makes use of events to handle user interaction, but it is also easy to have your classes communicate with each other via events.

Ext JS is very mature in the way it handles events, as it's something that's been at the core of the framework since the beginning. It uses an observer pattern to allow your classes to publish events and others to subscribe to those events. Your subscribing class will have its logic triggered as soon as the publishing class fires the event. This paradigm is asynchronous and modular.

As we covered in Chapter 2, Mastering the Framework's Building Blocks, the event-driven logic in Ext JS is handled by the Ext.mixin.Observable class.