Clear Up
SharpKit Reference

ModelConfig Class


Base Types



Name Description


Name Description
associations An array of {@link associations} for this model.
belongsTo One or more {@link BelongsTo associations} for this model.
defaultProxyType The string type of the default Model Proxy. Defaults to 'ajax'.
fields The fields for this model.
hasMany One or more {@link HasMany associations} for this model.
idgen The id generator to use for this model. The default id generator does not generate values for the {@link #idProperty}. * This can be overridden at the model level to provide a custom generator for a model. The simplest form of this would be: * Ext.define('', { extend: '', requires: [''], idgen: 'sequential', ... }); * The above would generate {@link sequential} id's such as 1, 2, 3 etc.. * Another useful id generator is {@link}: * Ext.define('', { extend: '', requires: [''], idgen: 'uuid', ... }); * An id generation can also be further configured: * Ext.define('', { extend: '', idgen: { type: 'sequential', seed: 1000, prefix: 'ID_' } }); * The above would generate id's such as ID_1000, ID_1001, ID_1002 etc.. * If multiple models share an id space, a single generator can be shared: * Ext.define('', { extend: '', idgen: { type: 'sequential', id: 'xy' } }); * Ext.define('', { extend: '', idgen: { type: 'sequential', id: 'xy' } }); * For more complex, shared id generators, a custom generator is the best approach. See {@link} for details on creating custom id generators. * @markdown
idProperty The name of the field treated as this Model's unique id. Defaults to 'id'.
validations An array of {@link validations} for this model.
© Copyright 2005-2011 SharpKit. All rights reserved.