1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-data.ResultSet-method-constructor'><span id='Ext-data.ResultSet'>/**
2 </span></span> * @author Ed Spencer
3 * @class Ext.data.ResultSet
6 * <p>Simple wrapper class that represents a set of records returned by a Proxy.</p>
9 * Creates the new ResultSet
11 Ext.define('Ext.data.ResultSet', {
12 <span id='Ext-data.ResultSet-cfg-loaded'> /**
13 </span> * @cfg {Boolean} loaded
14 * True if the records have already been loaded. This is only meaningful when dealing with
19 <span id='Ext-data.ResultSet-cfg-count'> /**
20 </span> * @cfg {Number} count
21 * The number of records in this ResultSet. Note that total may differ from this number
25 <span id='Ext-data.ResultSet-cfg-total'> /**
26 </span> * @cfg {Number} total
27 * The total number of records reported by the data source. This ResultSet may form a subset of
28 * those records (see count)
32 <span id='Ext-data.ResultSet-cfg-success'> /**
33 </span> * @cfg {Boolean} success
34 * True if the ResultSet loaded successfully, false if any errors were encountered
38 <span id='Ext-data.ResultSet-cfg-records'> /**
39 </span> * @cfg {Array} records The array of record instances. Required
42 constructor: function(config) {
43 Ext.apply(this, config);
45 <span id='Ext-data.ResultSet-property-totalRecords'> /**
46 </span> * DEPRECATED - will be removed in Ext JS 5.0. This is just a copy of this.total - use that instead
47 * @property totalRecords
50 this.totalRecords = this.total;
52 if (config.count === undefined) {
53 this.count = this.records.length;
56 });</pre></pre></body></html>