concept Writer in category ext js

appears as: Writer
Ext JS in Action, Second Edition

This is an excerpt from Manning's book Ext JS in Action, Second Edition.

7.3. A store with Writer

Writer saves you time and effort by removing the need for you to code Ajax requests and exception handling, giving you more time to do the important stuff, like building the business logic for your application. Before you start coding your Writer implementation, you should review how Writer fits into the picture.

To use Writer you’ll need to reconfigure your data store and the supporting proxy. Instead of configuring a url property for the proxy, you’ll create a configuration object known as api. The proxy api is a new concept for you, and we’ll discuss it in more detail in a bit when we review the example code.

You’ll need to create an instance of Writer and plug it into your data store, as well as add some new configuration properties to the store’s configuration object itself, as shown in the following listing.