📄 ext.data.store.html.svn-base
字号:
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Object</code><div class="sub-desc">The sort state of the Store. An object with two properties:<ul> <li><b>field : String<p class="sub-desc">The name of the field by which the Records are sorted.</p></li> <li><b>direction : String<p class="sub-desc">The sort order, "ASC" or "DESC" (case-sensitive).</p></li> </ul></div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-getTotalCount"></a>
<b>getTotalCount</b>() : Number <div class="mdesc">
<div class="short">Gets the total number of records in the dataset as returned by the server.If using paging, for this to be accurate, ...</div>
<div class="long">
Gets the total number of records in the dataset as returned by the server.<p>If using paging, for this to be accurate, the data object used by the Reader must containthe dataset size. For remote data sources, this is provided by a query on the server.</p> <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Number</code><div class="sub-desc">The number of Records as specified in the data object passed to the Reader by the Proxy <p><b>This value is not updated when changing the contents of the Store locally.</b></p></div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-hasListener"></a>
<b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
<div class="short">Checks to see if this object has any listeners for a specified event</div>
<div class="long">
Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-indexOf"></a>
<b>indexOf</b>( <code>Ext.data.Record record</code> ) : Number <div class="mdesc">
<div class="short">Get the index within the cache of the passed Record.</div>
<div class="long">
Get the index within the cache of the passed Record. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to find.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Number</code><div class="sub-desc">The index of the passed Record. Returns -1 if not found.</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-indexOfId"></a>
<b>indexOfId</b>( <code>String id</code> ) : Number <div class="mdesc">
<div class="short">Get the index within the cache of the Record with the passed id.</div>
<div class="long">
Get the index within the cache of the Record with the passed id. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Number</code><div class="sub-desc">The index of the Record. Returns -1 if not found.</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-insert"></a>
<b>insert</b>( <code>Number index</code>, <code>Ext.data.Record[] records</code> ) : void <div class="mdesc">
<div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
<div class="long">
Inserts Records to the Store at the given index and fires the add event. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>index</code> : Number<div class="sub-desc">The start index at which to insert the passed Records.</div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">An Array of Ext.data.Record objects to add to the cache.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-isFiltered"></a>
<b>isFiltered</b>() : Boolean <div class="mdesc">
<div class="short">Returns true if this store is currently filtered</div>
<div class="long">
Returns true if this store is currently filtered <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-load"></a>
<b>load</b>( <code>Object options</code> ) : Boolean <div class="mdesc">
<div class="short">Loads the Record cache from the configured Proxy using the configured Reader.If using remote paging, then the first ...</div>
<div class="long">
Loads the Record cache from the configured Proxy using the configured Reader.<p>If using remote paging, then the first load call must specify the <tt>start</tt>and <tt>limit</tt> properties in the options.params property to establish the initialposition within the dataset, and the number of Records to cache on each read from the Proxy.</p><p><b>It is important to note that for remote data sources, loading is asynchronous,and this call will return before the new data has been loaded. Perform any post-processingin a callback function, or in a "load" event handler.</b></p> <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>options</code> : Object<div class="sub-desc">An object containing properties which control loading options:<ul><li><b>params</b> :Object<p class="sub-desc">An object containing properties to pass as HTTP parameters to a remote data source.</p></li><li><b>callback</b> : Function<p class="sub-desc">A function to be called after the Records have been loaded. The callback ispassed the following arguments:<ul><li>r : Ext.data.Record[]</li><li>options: Options object from the load call</li><li>success: Boolean success indicator</li></ul></p></li><li><b>scope</b> : Object<p class="sub-desc">Scope with which to call the callback (defaults to the Store object)</p></li><li><b>add</b> : Boolean<p class="sub-desc">Indicator to append loaded records rather than replace the current cache.</p></li></ul></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Boolean</code><div class="sub-desc">Whether the load fired (if beforeload failed).</div></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-loadData"></a>
<b>loadData</b>( <code>Object data</code>, <span class="optional" title="Optional">[<code>Boolean append</code>]</span> ) : void <div class="mdesc">
<div class="short">Loads data from a passed data block. A Reader which understands the format of the datamust have been configured in t...</div>
<div class="long">
Loads data from a passed data block. A Reader which understands the format of the datamust have been configured in the constructor. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>data</code> : Object<div class="sub-desc">The data block from which to read the Records. The format of the data expectedis dependent on the type of Reader that is configured and should correspond to that Reader's readRecords parameter.</div></li><li><code>append</code> : Boolean<div class="sub-desc">(Optional) True to append the new Records rather than replace the existing cache.</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">Store</td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-on"></a>
<b>on</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span> ) : void <div class="mdesc">
<div class="short">Appends an event handler to this element (shorthand for addListener)</div>
<div class="long">
Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handlerfunction. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.data.Store-purgeListeners"></a>
<b>purgeListeners</b>() : void <div class="mdesc">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -