X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_data_SimpleStore.js.html;fp=docs%2Fsrc%2FRoo_data_SimpleStore.js.html;h=6cb65f63801070759ccf6e3c70cd8344a1d2c7e8;hp=0d0a36b28f3041406855190fd5704407563f1a17;hb=9c024aa0d7e78ad1630dca48384ef6586cd374d4;hpb=d25b2a59660233bd4af2b7c68dcdb508dd3b7727 diff --git a/docs/src/Roo_data_SimpleStore.js.html b/docs/src/Roo_data_SimpleStore.js.html index 0d0a36b28f..6cb65f6380 100644 --- a/docs/src/Roo_data_SimpleStore.js.html +++ b/docs/src/Roo_data_SimpleStore.js.html @@ -1,4 +1,4 @@ -
/*
+Roo/data/SimpleStore.js /*
* Based on:
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
@@ -15,14 +15,16 @@
* Small helper class to make creating Stores from Array data easier.
* @cfg {Number} id The array index of the record id. Leave blank to auto generate ids.
* @cfg {Array} fields An array of field definition objects, or field name strings.
+ * @cfg {Object} an existing reader (eg. copied from another store)
* @cfg {Array} data The multi-dimensional array of data
* @constructor
* @param {Object} config
*/
-Roo.data.SimpleStore = function(config){
+Roo.data.SimpleStore = function(config)
+{
Roo.data.SimpleStore.superclass.constructor.call(this, {
isLocal : true,
- reader: new Roo.data.ArrayReader({
+ reader: typeof(config.reader) != 'undefined' ? config.reader : new Roo.data.ArrayReader({
id: config.id
},
Roo.data.Record.create(config.fields)