In previous versions of Ext JS, a data store's Ext.data.Record
class would be defined implicitly based on the fields that were supplied on its creation. This approach meant that the data structures the application represented took a back seat, and it simply became a means to have a store hold your data.
In Ext JS 4, the Ext.data.Record
has been superseded by the Ext.data.Model
class, which acts in a very similar way but introduces a whole host of new capabilities and becomes a much more prominent part of an application's design. It introduces new concepts such as validation, proxies, and relationships, which we will discuss throughout this chapter.
The Ext.data.Model
class is used to represent an entity within your application, be it a user, a vehicle, or a group of settings, and an instance of it contains the data relating to one of those entities. Data stores are simply made up of a collection of these Model instances and are manipulated by the store as required.
This...