O'Reilly logo

Ext JS 4 Web Application Development Cookbook by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modeling a data object

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required