X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_data_JsonReader.js.html;fp=docs%2Fsrc%2FRoo_data_JsonReader.js.html;h=34bf3b4da35e8d70bec85c0e88dda7e2452c01b4;hp=d15d3b78c33e4b35e3156e668dafdf3ebea8f7b9;hb=9c024aa0d7e78ad1630dca48384ef6586cd374d4;hpb=d25b2a59660233bd4af2b7c68dcdb508dd3b7727 diff --git a/docs/src/Roo_data_JsonReader.js.html b/docs/src/Roo_data_JsonReader.js.html index d15d3b78c3..34bf3b4da3 100644 --- a/docs/src/Roo_data_JsonReader.js.html +++ b/docs/src/Roo_data_JsonReader.js.html @@ -1,4 +1,4 @@ -/home/edward/gitlive/roojs1/Roo/data/JsonReader.js/* +Roo/data/JsonReader.js/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -67,6 +67,8 @@ var myReader = new Roo.data.JsonReader({ }; Roo.extend(Roo.data.JsonReader, Roo.data.DataReader, { + readerType : 'Json', + /** * @prop {Boolean} metaFromRemote - if the meta data was loaded from the remote source. * Used by Store query builder to append _requestMeta to params. @@ -208,5 +210,13 @@ var myReader = new Roo.data.JsonReader({ records : records, totalRecords : totalRecords }; + }, + // used when loading children.. @see loadDataFromChildren + toLoadData: function(rec) + { + // expect rec just to be an array.. eg [a,b,c, [...] << cn ] + var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; + return { data : data, total : data.length }; + } }); \ No newline at end of file