Sencha Documentation

Super classes

Writer that outputs model data in JSON format

Config Options

 
encode : Boolean
True to use Ext.encode() on the data before sending. Defaults to false.
True to use Ext.encode() on the data before sending. Defaults to false.
 
root : String
The key under which the records in this Writer will be placed. Defaults to 'records'. Example generated request: {'re...
The key under which the records in this Writer will be placed. Defaults to 'records'. Example generated request:
{'records': [{name: 'my record'}, {name: 'another record'}]}

Methods

 
getRecordData( Object record ) : Object
Formats the data for each record before sending it to the server. This method should be overridden to format the data...
Formats the data for each record before sending it to the server. This method should be overridden to format the data in a way that differs from the default.

Parameters

  • record : Object
    The record that we are writing to the server.

Returns

  • Object   An object literal of name/value keys to be written to the server. By default this method returns the data property on the record.
 
write( Ext.data.Request request ) : Ext.data.Request
Prepares a Proxy's Ext.data.Request object
Prepares a Proxy's Ext.data.Request object

Parameters

  • request : Ext.data.Request
    The request object

Returns

  • Ext.data.Request   The modified request object