WriterConfig Class

Namespace: Ext.data.writer

Base Types



Name Description


Name Description
nameProperty This property is used to read the key for each value that will be sent to the server. For example:
Ext.define('Person', {
extend: 'Ext.data.Model',
fields: [{
name: 'first',
mapping: 'firstName'
}, {
name: 'last',
mapping: 'lastName'
}, {
name: 'age'
new Ext.data.writer.Writer({
writeAllFields: true,
nameProperty: 'mapping'
// This will be sent to the server
firstName: 'first name value',
lastName: 'last name value',
age: 1
Defaults to name. If the value is not present, the field name will always be used.
writeAllFields True to write all fields from the record to the server. If set to false it will only send the fields that were modified. Defaults to true. Note that any fields that have {@link Ext.data.Field#persist} set to false will still be ignored.
© Copyright 2005-2011 SharpKit. All rights reserved.