fcff8734f131ec80d6ae1e67d5f660ef41639ba3.svn-base 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.data.SimpleStore-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.data.SimpleStore-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.data.SimpleStore-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.data.SimpleStore-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.data.SimpleStore"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
  8. </div>
  9. <div class="inheritance res-block">
  10. <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
  11. <img src="resources/elbow-end.gif"/><a ext:cls="Ext.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a>
  12. <img src="resources/elbow-end.gif"/>SimpleStore</pre></div>
  13. <h1>Class Ext.data.SimpleStore</h1>
  14. <table cellspacing="0">
  15. <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
  16. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/SimpleStore.js" target="_blank">SimpleStore.js</a></td></tr>
  17. <tr><td class="label">Class:</td><td class="hd-info">SimpleStore</td></tr>
  18. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.data.Store" ext:member="" href="output/Ext.data.Store.html">Store</a></td></tr>
  19. </table>
  20. <div class="description">
  21. Small helper class to make creating Stores from Array data easier. </div>
  22. <div class="hr"></div>
  23. <a id="Ext.data.SimpleStore-configs"></a>
  24. <h2>Config Options</h2>
  25. <table cellspacing="0" class="member-table">
  26. <tr>
  27. <th class="sig-header" colspan="2">Config Options</th>
  28. <th class="msource-header">Defined By</th>
  29. </tr>
  30. <tr class="config-row inherited">
  31. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  32. <td class="sig">
  33. <a id="Ext.data.SimpleStore-autoLoad"></a>
  34. <b>autoLoad</b> : Boolean/Object <div class="mdesc">
  35. If passed, this store's load method is automatically called after creation with the autoLoad object </div>
  36. </td>
  37. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#autoLoad" href="output/Ext.data.Store.html#autoLoad">Store</a></td>
  38. </tr>
  39. <tr class="config-row inherited alt">
  40. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  41. <td class="sig">
  42. <a id="Ext.data.SimpleStore-baseParams"></a>
  43. <b>baseParams</b> : Object <div class="mdesc">
  44. An object containing properties which are to be sent as parameters on any HTTP request </div>
  45. </td>
  46. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
  47. </tr>
  48. <tr class="config-row">
  49. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  50. <td class="sig">
  51. <a id="Ext.data.SimpleStore-data"></a>
  52. <b>data</b> : Array <div class="mdesc">
  53. The multi-dimensional array of data </div>
  54. </td>
  55. <td class="msource">SimpleStore</td>
  56. </tr>
  57. <tr class="config-row alt">
  58. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  59. <td class="sig">
  60. <a id="Ext.data.SimpleStore-fields"></a>
  61. <b>fields</b> : Array <div class="mdesc">
  62. An array of field definition objects, or field name strings. </div>
  63. </td>
  64. <td class="msource">SimpleStore</td>
  65. </tr>
  66. <tr class="config-row">
  67. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  68. <td class="sig">
  69. <a id="Ext.data.SimpleStore-id"></a>
  70. <b>id</b> : Number <div class="mdesc">
  71. The array index of the record id. Leave blank to auto generate ids. </div>
  72. </td>
  73. <td class="msource">SimpleStore</td>
  74. </tr>
  75. <tr class="config-row inherited alt expandable">
  76. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  77. <td class="sig">
  78. <a id="Ext.data.SimpleStore-listeners"></a>
  79. <b>listeners</b> : Object <div class="mdesc">
  80. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  81. <div class="long">
  82. A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>
  83. </div>
  84. </td>
  85. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  86. </tr>
  87. <tr class="config-row inherited">
  88. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  89. <td class="sig">
  90. <a id="Ext.data.SimpleStore-proxy"></a>
  91. <b>proxy</b> : Ext.data.DataProxy <div class="mdesc">
  92. The Proxy object which provides access to a data object. </div>
  93. </td>
  94. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#proxy" href="output/Ext.data.Store.html#proxy">Store</a></td>
  95. </tr>
  96. <tr class="config-row inherited alt expandable">
  97. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  98. <td class="sig">
  99. <a id="Ext.data.SimpleStore-pruneModifiedRecords"></a>
  100. <b>pruneModifiedRecords</b> : boolean <div class="mdesc">
  101. <div class="short">True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to...</div>
  102. <div class="long">
  103. True to clear all modified record information each time the store is loaded or when a record is removed. (defaults to false). </div>
  104. </div>
  105. </td>
  106. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#pruneModifiedRecords" href="output/Ext.data.Store.html#pruneModifiedRecords">Store</a></td>
  107. </tr>
  108. <tr class="config-row inherited expandable">
  109. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  110. <td class="sig">
  111. <a id="Ext.data.SimpleStore-reader"></a>
  112. <b>reader</b> : Ext.data.Reader <div class="mdesc">
  113. <div class="short">The Reader object which processes the data object and returns an Array of Ext.data.record objects which are cached ke...</div>
  114. <div class="long">
  115. The Reader object which processes the data object and returns an Array of Ext.data.record objects which are cached keyed by their <em>id</em> property. </div>
  116. </div>
  117. </td>
  118. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reader" href="output/Ext.data.Store.html#reader">Store</a></td>
  119. </tr>
  120. <tr class="config-row inherited alt expandable">
  121. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  122. <td class="sig">
  123. <a id="Ext.data.SimpleStore-remoteSort"></a>
  124. <b>remoteSort</b> : boolean <div class="mdesc">
  125. <div class="short">True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted ...</div>
  126. <div class="long">
  127. True if sorting is to be handled by requesting the Proxy to provide a refreshed version of the data object in sorted order, as opposed to sorting the Record cache in place (defaults to false). <p>If remote sorting is specified, then clicking on a column header causes the current page to be requested from the server with the addition of the following two parameters: <div class="mdetail-params"><ul> <li><b>sort</b> : String<p class="sub-desc">The name (as specified in the Record's Field definition) of the field to sort on.</p></li> <li><b>dir</b> : String<p class="sub-desc">The direction of the sort, "ASC" or "DESC".</p></li> </ul></div></p> </div>
  128. </div>
  129. </td>
  130. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remoteSort" href="output/Ext.data.Store.html#remoteSort">Store</a></td>
  131. </tr>
  132. <tr class="config-row inherited">
  133. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  134. <td class="sig">
  135. <a id="Ext.data.SimpleStore-sortInfo"></a>
  136. <b>sortInfo</b> : Object <div class="mdesc">
  137. A config object in the format: {field: "fieldName", direction: "ASC|DESC"} </div>
  138. </td>
  139. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sortInfo" href="output/Ext.data.Store.html#sortInfo">Store</a></td>
  140. </tr>
  141. <tr class="config-row inherited alt">
  142. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  143. <td class="sig">
  144. <a id="Ext.data.SimpleStore-storeId"></a>
  145. <b>storeId</b> : String <div class="mdesc">
  146. If passed, the id to use to register with the StoreMgr </div>
  147. </td>
  148. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#storeId" href="output/Ext.data.Store.html#storeId">Store</a></td>
  149. </tr>
  150. <tr class="config-row inherited">
  151. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  152. <td class="sig">
  153. <a id="Ext.data.SimpleStore-url"></a>
  154. <b>url</b> : String <div class="mdesc">
  155. If passed, an HttpProxy is created for the passed URL </div>
  156. </td>
  157. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#url" href="output/Ext.data.Store.html#url">Store</a></td>
  158. </tr>
  159. </table>
  160. <a id="Ext.data.SimpleStore-props"></a>
  161. <h2>Public Properties</h2>
  162. <table cellspacing="0" class="member-table">
  163. <tr>
  164. <th class="sig-header" colspan="2">Property</th>
  165. <th class="msource-header">Defined By</th>
  166. </tr>
  167. <tr class="property-row inherited">
  168. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  169. <td class="sig">
  170. <a id="Ext.data.SimpleStore-baseParams"></a>
  171. <b>baseParams</b> : Object <div class="mdesc">
  172. An object containing properties which are used as parameters on any HTTP request. </div>
  173. </td>
  174. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#baseParams" href="output/Ext.data.Store.html#baseParams">Store</a></td>
  175. </tr>
  176. <tr class="property-row inherited alt expandable">
  177. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  178. <td class="sig">
  179. <a id="Ext.data.SimpleStore-lastOptions"></a>
  180. <b>lastOptions</b> : Object <div class="mdesc">
  181. <div class="short">Contains the last options object used as the parameter to the load method. See load
  182. for the details of what this may ...</div>
  183. <div class="long">
  184. Contains the last options object used as the parameter to the load method. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a>
  185. for the details of what this may contain. This may be useful for accessing any params which
  186. were used to load the current Record cache. </div>
  187. </div>
  188. </td>
  189. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#lastOptions" href="output/Ext.data.Store.html#lastOptions">Store</a></td>
  190. </tr>
  191. </table>
  192. <a id="Ext.data.SimpleStore-methods"></a>
  193. <h2>Public Methods</h2>
  194. <table cellspacing="0" class="member-table">
  195. <tr>
  196. <th class="sig-header" colspan="2">Method</th>
  197. <th class="msource-header">Defined By</th>
  198. </tr>
  199. <tr class="method-row expandable">
  200. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  201. <td class="sig">
  202. <a id="Ext.data.SimpleStore-SimpleStore"></a>
  203. <b>SimpleStore</b>(&nbsp;<code>Object config</code>&nbsp;) <div class="mdesc">
  204. <div class="short"></div>
  205. <div class="long">
  206. <div class="mdetail-params">
  207. <strong>Parameters:</strong>
  208. <ul><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul>
  209. <strong>Returns:</strong>
  210. <ul>
  211. <li><code></code></li>
  212. </ul>
  213. </div>
  214. </div>
  215. </div>
  216. </td>
  217. <td class="msource">SimpleStore</td>
  218. </tr>
  219. <tr class="method-row inherited alt expandable">
  220. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  221. <td class="sig">
  222. <a id="Ext.data.SimpleStore-add"></a>
  223. <b>add</b>(&nbsp;<code>Ext.data.Record[] records</code>&nbsp;) : void <div class="mdesc">
  224. <div class="short">Add Records to the Store and fires the add event.</div>
  225. <div class="long">
  226. Add Records to the Store and fires the add event. <div class="mdetail-params">
  227. <strong>Parameters:</strong>
  228. <ul><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>
  229. <strong>Returns:</strong>
  230. <ul>
  231. <li><code>void</code></li>
  232. </ul>
  233. </div>
  234. </div>
  235. </div>
  236. </td>
  237. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#add" href="output/Ext.data.Store.html#add">Store</a></td>
  238. </tr>
  239. <tr class="method-row inherited expandable">
  240. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  241. <td class="sig">
  242. <a id="Ext.data.SimpleStore-addEvents"></a>
  243. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  244. <div class="short">Used to define events on this Observable</div>
  245. <div class="long">
  246. Used to define events on this Observable <div class="mdetail-params">
  247. <strong>Parameters:</strong>
  248. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  249. <strong>Returns:</strong>
  250. <ul>
  251. <li><code>void</code></li>
  252. </ul>
  253. </div>
  254. </div>
  255. </div>
  256. </td>
  257. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  258. </tr>
  259. <tr class="method-row inherited alt expandable">
  260. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  261. <td class="sig">
  262. <a id="Ext.data.SimpleStore-addListener"></a>
  263. <b>addListener</b>(&nbsp;<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>&nbsp;) : void <div class="mdesc">
  264. <div class="short">Appends an event handler to this component</div>
  265. <div class="long">
  266. Appends an event handler to this component <div class="mdetail-params">
  267. <strong>Parameters:</strong>
  268. <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 handler
  269. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  270. properties. This may contain any of the following properties:<ul>
  271. <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
  272. <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
  273. <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
  274. <li>buffer {Number} Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
  275. by the specified number of milliseconds. If the event fires again within that time, the original
  276. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  277. </ul><br>
  278. <p>
  279. <b>Combining Options</b><br>
  280. Using the options argument, it is possible to combine different types of listeners:<br>
  281. <br>
  282. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  283. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  284. single: true,
  285. delay: 100,
  286. forumId: 4
  287. });</code></pre>
  288. <p>
  289. <b>Attaching multiple handlers in 1 call</b><br>
  290. The method also allows for a single argument to be passed which is a config object containing properties
  291. which specify multiple handlers.
  292. <p>
  293. <pre><code>foo.on({
  294. <em>'click'</em> : {
  295. fn: <b>this</b>.onClick,
  296. scope: <b>this</b>,
  297. delay: 100
  298. },
  299. <em>'mouseover'</em> : {
  300. fn: <b>this</b>.onMouseOver,
  301. scope: <b>this</b>
  302. },
  303. <em>'mouseout'</em> : {
  304. fn: <b>this</b>.onMouseOut,
  305. scope: <b>this</b>
  306. }
  307. });</code></pre>
  308. <p>
  309. Or a shorthand syntax:<br>
  310. <pre><code>foo.on({
  311. <em>'click'</em> : <b>this</b>.onClick,
  312. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  313. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  314. scope: <b>this</b>
  315. });</code></pre></div></li> </ul>
  316. <strong>Returns:</strong>
  317. <ul>
  318. <li><code>void</code></li>
  319. </ul>
  320. </div>
  321. </div>
  322. </div>
  323. </td>
  324. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  325. </tr>
  326. <tr class="method-row inherited expandable">
  327. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  328. <td class="sig">
  329. <a id="Ext.data.SimpleStore-addSorted"></a>
  330. <b>addSorted</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void <div class="mdesc">
  331. <div class="short">(Local sort only) Inserts the passed the record in the Store at the index where it
  332. should go based on the current sor...</div>
  333. <div class="long">
  334. (Local sort only) Inserts the passed the record in the Store at the index where it
  335. should go based on the current sort information <div class="mdetail-params">
  336. <strong>Parameters:</strong>
  337. <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc"></div></li> </ul>
  338. <strong>Returns:</strong>
  339. <ul>
  340. <li><code>void</code></li>
  341. </ul>
  342. </div>
  343. </div>
  344. </div>
  345. </td>
  346. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#addSorted" href="output/Ext.data.Store.html#addSorted">Store</a></td>
  347. </tr>
  348. <tr class="method-row inherited alt expandable">
  349. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  350. <td class="sig">
  351. <a id="Ext.data.SimpleStore-clearFilter"></a>
  352. <b>clearFilter</b>(&nbsp;<code>Boolean suppressEvent</code>&nbsp;) : void <div class="mdesc">
  353. <div class="short">Revert to a view of the Record cache with no filtering applied.</div>
  354. <div class="long">
  355. Revert to a view of the Record cache with no filtering applied. <div class="mdetail-params">
  356. <strong>Parameters:</strong>
  357. <ul><li><code>suppressEvent</code> : Boolean<div class="sub-desc">If true the filter is cleared silently without notifying listeners</div></li> </ul>
  358. <strong>Returns:</strong>
  359. <ul>
  360. <li><code>void</code></li>
  361. </ul>
  362. </div>
  363. </div>
  364. </div>
  365. </td>
  366. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#clearFilter" href="output/Ext.data.Store.html#clearFilter">Store</a></td>
  367. </tr>
  368. <tr class="method-row inherited expandable">
  369. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  370. <td class="sig">
  371. <a id="Ext.data.SimpleStore-collect"></a>
  372. <b>collect</b>(&nbsp;<code>String dataIndex</code>, <span class="optional" title="Optional">[<code>Boolean allowNull</code>]</span>, <span class="optional" title="Optional">[<code>Boolean bypassFilter</code>]</span>&nbsp;) : Array <div class="mdesc">
  373. <div class="short">Collects unique values for a particular dataIndex from this store.</div>
  374. <div class="long">
  375. Collects unique values for a particular dataIndex from this store. <div class="mdetail-params">
  376. <strong>Parameters:</strong>
  377. <ul><li><code>dataIndex</code> : String<div class="sub-desc">The property to collect</div></li><li><code>allowNull</code> : Boolean<div class="sub-desc">(optional) Pass true to allow null, undefined or empty string values</div></li><li><code>bypassFilter</code> : Boolean<div class="sub-desc">(optional) Pass true to collect from all records, even ones which are filtered</div></li> </ul>
  378. <strong>Returns:</strong>
  379. <ul>
  380. <li><code>Array</code><div class="sub-desc">An array of the unique values</div></li>
  381. </ul>
  382. </div>
  383. </div>
  384. </div>
  385. </td>
  386. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#collect" href="output/Ext.data.Store.html#collect">Store</a></td>
  387. </tr>
  388. <tr class="method-row inherited alt expandable">
  389. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  390. <td class="sig">
  391. <a id="Ext.data.SimpleStore-commitChanges"></a>
  392. <b>commitChanges</b>() : void <div class="mdesc">
  393. <div class="short">Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
  394. Store's "update" event, ...</div>
  395. <div class="long">
  396. Commit all Records with outstanding changes. To handle updates for changes, subscribe to the
  397. Store's "update" event, and perform updating when the third parameter is Ext.data.Record.COMMIT. <div class="mdetail-params">
  398. <strong>Parameters:</strong>
  399. <ul><li>None.</li> </ul>
  400. <strong>Returns:</strong>
  401. <ul>
  402. <li><code>void</code></li>
  403. </ul>
  404. </div>
  405. </div>
  406. </div>
  407. </td>
  408. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#commitChanges" href="output/Ext.data.Store.html#commitChanges">Store</a></td>
  409. </tr>
  410. <tr class="method-row inherited expandable">
  411. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  412. <td class="sig">
  413. <a id="Ext.data.SimpleStore-each"></a>
  414. <b>each</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  415. <div class="short">Calls the specified function for each of the Records in the cache.</div>
  416. <div class="long">
  417. Calls the specified function for each of the Records in the cache. <div class="mdetail-params">
  418. <strong>Parameters:</strong>
  419. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call. The Record is passed as the first parameter.
  420. Returning <tt>false</tt> aborts and exits the iteration.</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to call the function (defaults to the Record).</div></li> </ul>
  421. <strong>Returns:</strong>
  422. <ul>
  423. <li><code>void</code></li>
  424. </ul>
  425. </div>
  426. </div>
  427. </div>
  428. </td>
  429. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#each" href="output/Ext.data.Store.html#each">Store</a></td>
  430. </tr>
  431. <tr class="method-row inherited alt expandable">
  432. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  433. <td class="sig">
  434. <a id="Ext.data.SimpleStore-filter"></a>
  435. <b>filter</b>(&nbsp;<code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : void <div class="mdesc">
  436. <div class="short">Filter the records by a specified property.</div>
  437. <div class="long">
  438. Filter the records by a specified property. <div class="mdetail-params">
  439. <strong>Parameters:</strong>
  440. <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
  441. should start with or a RegExp to test against the field</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
  442. <strong>Returns:</strong>
  443. <ul>
  444. <li><code>void</code></li>
  445. </ul>
  446. </div>
  447. </div>
  448. </div>
  449. </td>
  450. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filter" href="output/Ext.data.Store.html#filter">Store</a></td>
  451. </tr>
  452. <tr class="method-row inherited expandable">
  453. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  454. <td class="sig">
  455. <a id="Ext.data.SimpleStore-filterBy"></a>
  456. <b>filterBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  457. <div class="short">Filter by a function. The specified function will be called for each
  458. Record in this Store. If the function returns tr...</div>
  459. <div class="long">
  460. Filter by a function. The specified function will be called for each
  461. Record in this Store. If the function returns <tt>true</tt> the Record is included,
  462. otherwise it is filtered out. <div class="mdetail-params">
  463. <strong>Parameters:</strong>
  464. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
  465. <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
  466. to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
  467. <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
  468. </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li> </ul>
  469. <strong>Returns:</strong>
  470. <ul>
  471. <li><code>void</code></li>
  472. </ul>
  473. </div>
  474. </div>
  475. </div>
  476. </td>
  477. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#filterBy" href="output/Ext.data.Store.html#filterBy">Store</a></td>
  478. </tr>
  479. <tr class="method-row inherited alt expandable">
  480. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  481. <td class="sig">
  482. <a id="Ext.data.SimpleStore-find"></a>
  483. <b>find</b>(&nbsp;<code>String property</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : Number <div class="mdesc">
  484. <div class="short">Finds the index of the first matching record in this store by a specific property/value.</div>
  485. <div class="long">
  486. Finds the index of the first matching record in this store by a specific property/value. <div class="mdetail-params">
  487. <strong>Parameters:</strong>
  488. <ul><li><code>property</code> : String<div class="sub-desc">A property on your objects</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either string that the property values
  489. should start with or a RegExp to test against the property.</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part of the string, not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
  490. <strong>Returns:</strong>
  491. <ul>
  492. <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
  493. </ul>
  494. </div>
  495. </div>
  496. </div>
  497. </td>
  498. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#find" href="output/Ext.data.Store.html#find">Store</a></td>
  499. </tr>
  500. <tr class="method-row inherited expandable">
  501. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  502. <td class="sig">
  503. <a id="Ext.data.SimpleStore-findBy"></a>
  504. <b>findBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Number startIndex</code>]</span>&nbsp;) : Number <div class="mdesc">
  505. <div class="short">Find the index of the first matching Record in this Store by a function.
  506. If the function returns true it is considere...</div>
  507. <div class="long">
  508. Find the index of the first matching Record in this Store by a function.
  509. If the function returns <tt>true</tt> it is considered a match. <div class="mdetail-params">
  510. <strong>Parameters:</strong>
  511. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
  512. <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
  513. to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
  514. <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
  515. </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The index to start searching at</div></li> </ul>
  516. <strong>Returns:</strong>
  517. <ul>
  518. <li><code>Number</code><div class="sub-desc">The matched index or -1</div></li>
  519. </ul>
  520. </div>
  521. </div>
  522. </div>
  523. </td>
  524. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#findBy" href="output/Ext.data.Store.html#findBy">Store</a></td>
  525. </tr>
  526. <tr class="method-row inherited alt expandable">
  527. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  528. <td class="sig">
  529. <a id="Ext.data.SimpleStore-fireEvent"></a>
  530. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  531. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  532. <div class="long">
  533. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  534. <strong>Parameters:</strong>
  535. <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
  536. <strong>Returns:</strong>
  537. <ul>
  538. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  539. </ul>
  540. </div>
  541. </div>
  542. </div>
  543. </td>
  544. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  545. </tr>
  546. <tr class="method-row inherited expandable">
  547. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  548. <td class="sig">
  549. <a id="Ext.data.SimpleStore-getAt"></a>
  550. <b>getAt</b>(&nbsp;<code>Number index</code>&nbsp;) : Ext.data.Record <div class="mdesc">
  551. <div class="short">Get the Record at the specified index.</div>
  552. <div class="long">
  553. Get the Record at the specified index. <div class="mdetail-params">
  554. <strong>Parameters:</strong>
  555. <ul><li><code>index</code> : Number<div class="sub-desc">The index of the Record to find.</div></li> </ul>
  556. <strong>Returns:</strong>
  557. <ul>
  558. <li><code>Ext.data.Record</code><div class="sub-desc">The Record at the passed index. Returns undefined if not found.</div></li>
  559. </ul>
  560. </div>
  561. </div>
  562. </div>
  563. </td>
  564. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getAt" href="output/Ext.data.Store.html#getAt">Store</a></td>
  565. </tr>
  566. <tr class="method-row inherited alt expandable">
  567. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  568. <td class="sig">
  569. <a id="Ext.data.SimpleStore-getById"></a>
  570. <b>getById</b>(&nbsp;<code>String id</code>&nbsp;) : Ext.data.Record <div class="mdesc">
  571. <div class="short">Get the Record with the specified id.</div>
  572. <div class="long">
  573. Get the Record with the specified id. <div class="mdetail-params">
  574. <strong>Parameters:</strong>
  575. <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li> </ul>
  576. <strong>Returns:</strong>
  577. <ul>
  578. <li><code>Ext.data.Record</code><div class="sub-desc">The Record with the passed id. Returns undefined if not found.</div></li>
  579. </ul>
  580. </div>
  581. </div>
  582. </div>
  583. </td>
  584. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getById" href="output/Ext.data.Store.html#getById">Store</a></td>
  585. </tr>
  586. <tr class="method-row inherited expandable">
  587. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  588. <td class="sig">
  589. <a id="Ext.data.SimpleStore-getCount"></a>
  590. <b>getCount</b>() : Number <div class="mdesc">
  591. <div class="short">Gets the number of cached records.
  592. If using paging, this may not be the total size of the dataset. If the data object...</div>
  593. <div class="long">
  594. Gets the number of cached records.
  595. <p>If using paging, this may not be the total size of the dataset. If the data object
  596. used by the Reader contains the dataset size, then the <a ext:cls="Ext.data.Store" ext:member="getTotalCount" href="output/Ext.data.Store.html#getTotalCount">getTotalCount</a> function returns
  597. the dataset size.</p> <div class="mdetail-params">
  598. <strong>Parameters:</strong>
  599. <ul><li>None.</li> </ul>
  600. <strong>Returns:</strong>
  601. <ul>
  602. <li><code>Number</code><div class="sub-desc">The number of Records in the Store's cache.</div></li>
  603. </ul>
  604. </div>
  605. </div>
  606. </div>
  607. </td>
  608. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getCount" href="output/Ext.data.Store.html#getCount">Store</a></td>
  609. </tr>
  610. <tr class="method-row inherited alt expandable">
  611. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  612. <td class="sig">
  613. <a id="Ext.data.SimpleStore-getModifiedRecords"></a>
  614. <b>getModifiedRecords</b>() : Ext.data.Record[] <div class="mdesc">
  615. <div class="short">Gets all records modified since the last commit. Modified records are persisted across load operations
  616. (e.g., during...</div>
  617. <div class="long">
  618. Gets all records modified since the last commit. Modified records are persisted across load operations
  619. (e.g., during paging). <div class="mdetail-params">
  620. <strong>Parameters:</strong>
  621. <ul><li>None.</li> </ul>
  622. <strong>Returns:</strong>
  623. <ul>
  624. <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records containing outstanding modifications.</div></li>
  625. </ul>
  626. </div>
  627. </div>
  628. </div>
  629. </td>
  630. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getModifiedRecords" href="output/Ext.data.Store.html#getModifiedRecords">Store</a></td>
  631. </tr>
  632. <tr class="method-row inherited expandable">
  633. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  634. <td class="sig">
  635. <a id="Ext.data.SimpleStore-getRange"></a>
  636. <b>getRange</b>(&nbsp;<span class="optional" title="Optional">[<code>Number startIndex</code>]</span>, <span class="optional" title="Optional">[<code>Number endIndex</code>]</span>&nbsp;) : Ext.data.Record[] <div class="mdesc">
  637. <div class="short">Returns a range of Records between specified indices.</div>
  638. <div class="long">
  639. Returns a range of Records between specified indices. <div class="mdetail-params">
  640. <strong>Parameters:</strong>
  641. <ul><li><code>startIndex</code> : Number<div class="sub-desc">(optional) The starting index (defaults to 0)</div></li><li><code>endIndex</code> : Number<div class="sub-desc">(optional) The ending index (defaults to the last Record in the Store)</div></li> </ul>
  642. <strong>Returns:</strong>
  643. <ul>
  644. <li><code>Ext.data.Record[]</code><div class="sub-desc">An array of Records</div></li>
  645. </ul>
  646. </div>
  647. </div>
  648. </div>
  649. </td>
  650. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getRange" href="output/Ext.data.Store.html#getRange">Store</a></td>
  651. </tr>
  652. <tr class="method-row inherited alt expandable">
  653. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  654. <td class="sig">
  655. <a id="Ext.data.SimpleStore-getSortState"></a>
  656. <b>getSortState</b>() : Object <div class="mdesc">
  657. <div class="short">Returns an object describing the current sort state of this Store.</div>
  658. <div class="long">
  659. Returns an object describing the current sort state of this Store. <div class="mdetail-params">
  660. <strong>Parameters:</strong>
  661. <ul><li>None.</li> </ul>
  662. <strong>Returns:</strong>
  663. <ul>
  664. <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".</p></li> </ul></div></li>
  665. </ul>
  666. </div>
  667. </div>
  668. </div>
  669. </td>
  670. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getSortState" href="output/Ext.data.Store.html#getSortState">Store</a></td>
  671. </tr>
  672. <tr class="method-row inherited expandable">
  673. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  674. <td class="sig">
  675. <a id="Ext.data.SimpleStore-getTotalCount"></a>
  676. <b>getTotalCount</b>() : Number <div class="mdesc">
  677. <div class="short">Gets the total number of records in the dataset as returned by the server.
  678. If using paging, for this to be accurate, ...</div>
  679. <div class="long">
  680. Gets the total number of records in the dataset as returned by the server.
  681. <p>If using paging, for this to be accurate, the data object used by the Reader must contain
  682. the dataset size. For remote data sources, this is provided by a query on the server.</p> <div class="mdetail-params">
  683. <strong>Parameters:</strong>
  684. <ul><li>None.</li> </ul>
  685. <strong>Returns:</strong>
  686. <ul>
  687. <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>
  688. </ul>
  689. </div>
  690. </div>
  691. </div>
  692. </td>
  693. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#getTotalCount" href="output/Ext.data.Store.html#getTotalCount">Store</a></td>
  694. </tr>
  695. <tr class="method-row inherited alt expandable">
  696. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  697. <td class="sig">
  698. <a id="Ext.data.SimpleStore-hasListener"></a>
  699. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  700. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  701. <div class="long">
  702. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  703. <strong>Parameters:</strong>
  704. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  705. <strong>Returns:</strong>
  706. <ul>
  707. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  708. </ul>
  709. </div>
  710. </div>
  711. </div>
  712. </td>
  713. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  714. </tr>
  715. <tr class="method-row inherited expandable">
  716. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  717. <td class="sig">
  718. <a id="Ext.data.SimpleStore-indexOf"></a>
  719. <b>indexOf</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : Number <div class="mdesc">
  720. <div class="short">Get the index within the cache of the passed Record.</div>
  721. <div class="long">
  722. Get the index within the cache of the passed Record. <div class="mdetail-params">
  723. <strong>Parameters:</strong>
  724. <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Ext.data.Record object to to find.</div></li> </ul>
  725. <strong>Returns:</strong>
  726. <ul>
  727. <li><code>Number</code><div class="sub-desc">The index of the passed Record. Returns -1 if not found.</div></li>
  728. </ul>
  729. </div>
  730. </div>
  731. </div>
  732. </td>
  733. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOf" href="output/Ext.data.Store.html#indexOf">Store</a></td>
  734. </tr>
  735. <tr class="method-row inherited alt expandable">
  736. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  737. <td class="sig">
  738. <a id="Ext.data.SimpleStore-indexOfId"></a>
  739. <b>indexOfId</b>(&nbsp;<code>String id</code>&nbsp;) : Number <div class="mdesc">
  740. <div class="short">Get the index within the cache of the Record with the passed id.</div>
  741. <div class="long">
  742. Get the index within the cache of the Record with the passed id. <div class="mdetail-params">
  743. <strong>Parameters:</strong>
  744. <ul><li><code>id</code> : String<div class="sub-desc">The id of the Record to find.</div></li> </ul>
  745. <strong>Returns:</strong>
  746. <ul>
  747. <li><code>Number</code><div class="sub-desc">The index of the Record. Returns -1 if not found.</div></li>
  748. </ul>
  749. </div>
  750. </div>
  751. </div>
  752. </td>
  753. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#indexOfId" href="output/Ext.data.Store.html#indexOfId">Store</a></td>
  754. </tr>
  755. <tr class="method-row inherited expandable">
  756. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  757. <td class="sig">
  758. <a id="Ext.data.SimpleStore-insert"></a>
  759. <b>insert</b>(&nbsp;<code>Number index</code>, <code>Ext.data.Record[] records</code>&nbsp;) : void <div class="mdesc">
  760. <div class="short">Inserts Records to the Store at the given index and fires the add event.</div>
  761. <div class="long">
  762. Inserts Records to the Store at the given index and fires the add event. <div class="mdetail-params">
  763. <strong>Parameters:</strong>
  764. <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>
  765. <strong>Returns:</strong>
  766. <ul>
  767. <li><code>void</code></li>
  768. </ul>
  769. </div>
  770. </div>
  771. </div>
  772. </td>
  773. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#insert" href="output/Ext.data.Store.html#insert">Store</a></td>
  774. </tr>
  775. <tr class="method-row inherited alt expandable">
  776. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  777. <td class="sig">
  778. <a id="Ext.data.SimpleStore-isFiltered"></a>
  779. <b>isFiltered</b>() : Boolean <div class="mdesc">
  780. <div class="short">Returns true if this store is currently filtered</div>
  781. <div class="long">
  782. Returns true if this store is currently filtered <div class="mdetail-params">
  783. <strong>Parameters:</strong>
  784. <ul><li>None.</li> </ul>
  785. <strong>Returns:</strong>
  786. <ul>
  787. <li><code>Boolean</code></li>
  788. </ul>
  789. </div>
  790. </div>
  791. </div>
  792. </td>
  793. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#isFiltered" href="output/Ext.data.Store.html#isFiltered">Store</a></td>
  794. </tr>
  795. <tr class="method-row inherited expandable">
  796. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  797. <td class="sig">
  798. <a id="Ext.data.SimpleStore-load"></a>
  799. <b>load</b>(&nbsp;<code>Object options</code>&nbsp;) : void <div class="mdesc">
  800. <div class="short">Loads the Record cache from the configured Proxy using the configured Reader.
  801. If using remote paging, then the first ...</div>
  802. <div class="long">
  803. Loads the Record cache from the configured Proxy using the configured Reader.
  804. <p>If using remote paging, then the first load call must specify the <tt>start</tt>
  805. and <tt>limit</tt> properties in the options.params property to establish the initial
  806. position within the dataset, and the number of Records to cache on each read from the Proxy.</p>
  807. <p><b>It is important to note that for remote data sources, loading is asynchronous,
  808. and this call will return before the new data has been loaded. Perform any post-processing
  809. in a callback function, or in a "load" event handler.</b></p> <div class="mdetail-params">
  810. <strong>Parameters:</strong>
  811. <ul><li><code>options</code> : Object<div class="sub-desc">An object containing properties which control loading options:<ul>
  812. <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>
  813. <li><b>callback</b> : Function}<p class="sub-desc">A function to be called after the Records have been loaded. The callback is
  814. passed the following arguments:<ul>
  815. <li>r : Ext.data.Record[]</li>
  816. <li>options: Options object from the load call</li>
  817. <li>success: Boolean success indicator</li></ul></p></li>
  818. <li><b>scope</b> : Object<p class="sub-desc">Scope with which to call the callback (defaults to the Store object)</p></li>
  819. <li><b>add</b> : Boolean<p class="sub-desc">Indicator to append loaded records rather than replace the current cache.</p></li>
  820. </ul></div></li> </ul>
  821. <strong>Returns:</strong>
  822. <ul>
  823. <li><code>void</code></li>
  824. </ul>
  825. </div>
  826. </div>
  827. </div>
  828. </td>
  829. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#load" href="output/Ext.data.Store.html#load">Store</a></td>
  830. </tr>
  831. <tr class="method-row inherited alt expandable">
  832. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  833. <td class="sig">
  834. <a id="Ext.data.SimpleStore-loadData"></a>
  835. <b>loadData</b>(&nbsp;<code>Object data</code>, <span class="optional" title="Optional">[<code>Boolean append</code>]</span>&nbsp;) : void <div class="mdesc">
  836. <div class="short">Loads data from a passed data block. A Reader which understands the format of the data
  837. must have been configured in t...</div>
  838. <div class="long">
  839. Loads data from a passed data block. A Reader which understands the format of the data
  840. must have been configured in the constructor. <div class="mdetail-params">
  841. <strong>Parameters:</strong>
  842. <ul><li><code>data</code> : Object<div class="sub-desc">The data block from which to read the Records. The format of the data expected
  843. is 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>
  844. <strong>Returns:</strong>
  845. <ul>
  846. <li><code>void</code></li>
  847. </ul>
  848. </div>
  849. </div>
  850. </div>
  851. </td>
  852. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#loadData" href="output/Ext.data.Store.html#loadData">Store</a></td>
  853. </tr>
  854. <tr class="method-row inherited expandable">
  855. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  856. <td class="sig">
  857. <a id="Ext.data.SimpleStore-on"></a>
  858. <b>on</b>(&nbsp;<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>&nbsp;) : void <div class="mdesc">
  859. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  860. <div class="long">
  861. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  862. <strong>Parameters:</strong>
  863. <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 handler
  864. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  865. <strong>Returns:</strong>
  866. <ul>
  867. <li><code>void</code></li>
  868. </ul>
  869. </div>
  870. </div>
  871. </div>
  872. </td>
  873. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  874. </tr>
  875. <tr class="method-row inherited alt expandable">
  876. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  877. <td class="sig">
  878. <a id="Ext.data.SimpleStore-purgeListeners"></a>
  879. <b>purgeListeners</b>() : void <div class="mdesc">
  880. <div class="short">Removes all listeners for this object</div>
  881. <div class="long">
  882. Removes all listeners for this object <div class="mdetail-params">
  883. <strong>Parameters:</strong>
  884. <ul><li>None.</li> </ul>
  885. <strong>Returns:</strong>
  886. <ul>
  887. <li><code>void</code></li>
  888. </ul>
  889. </div>
  890. </div>
  891. </div>
  892. </td>
  893. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  894. </tr>
  895. <tr class="method-row inherited expandable">
  896. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  897. <td class="sig">
  898. <a id="Ext.data.SimpleStore-query"></a>
  899. <b>query</b>(&nbsp;<code>String field</code>, <code>String/RegExp value</code>, <span class="optional" title="Optional">[<code>Boolean anyMatch</code>]</span>, <span class="optional" title="Optional">[<code>Boolean caseSensitive</code>]</span>&nbsp;) : MixedCollection <div class="mdesc">
  900. <div class="short">Query the records by a specified property.</div>
  901. <div class="long">
  902. Query the records by a specified property. <div class="mdetail-params">
  903. <strong>Parameters:</strong>
  904. <ul><li><code>field</code> : String<div class="sub-desc">A field on your records</div></li><li><code>value</code> : String/RegExp<div class="sub-desc">Either a string that the field
  905. should start with or a RegExp to test against the field</div></li><li><code>anyMatch</code> : Boolean<div class="sub-desc">(optional) True to match any part not just the beginning</div></li><li><code>caseSensitive</code> : Boolean<div class="sub-desc">(optional) True for case sensitive comparison</div></li> </ul>
  906. <strong>Returns:</strong>
  907. <ul>
  908. <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
  909. </ul>
  910. </div>
  911. </div>
  912. </div>
  913. </td>
  914. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#query" href="output/Ext.data.Store.html#query">Store</a></td>
  915. </tr>
  916. <tr class="method-row inherited alt expandable">
  917. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  918. <td class="sig">
  919. <a id="Ext.data.SimpleStore-queryBy"></a>
  920. <b>queryBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : MixedCollection <div class="mdesc">
  921. <div class="short">Query the cached records in this Store using a filtering function. The specified function
  922. will be called with each re...</div>
  923. <div class="long">
  924. Query the cached records in this Store using a filtering function. The specified function
  925. will be called with each record in this Store. If the function returns <tt>true</tt> the record is
  926. included in the results. <div class="mdetail-params">
  927. <strong>Parameters:</strong>
  928. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to be called. It will be passed the following parameters:<ul>
  929. <li><b>record</b> : Ext.data.Record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">record</a>
  930. to test for filtering. Access field values using <a ext:cls="Ext.data.Record" ext:member="get" href="output/Ext.data.Record.html#get">Ext.data.Record.get</a>.</p></li>
  931. <li><b>id</b> : Object<p class="sub-desc">The ID of the Record passed.</p></li>
  932. </ul></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to this)</div></li> </ul>
  933. <strong>Returns:</strong>
  934. <ul>
  935. <li><code>MixedCollection</code><div class="sub-desc">Returns an Ext.util.MixedCollection of the matched records</div></li>
  936. </ul>
  937. </div>
  938. </div>
  939. </div>
  940. </td>
  941. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#queryBy" href="output/Ext.data.Store.html#queryBy">Store</a></td>
  942. </tr>
  943. <tr class="method-row inherited expandable">
  944. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  945. <td class="sig">
  946. <a id="Ext.data.SimpleStore-rejectChanges"></a>
  947. <b>rejectChanges</b>() : void <div class="mdesc">
  948. <div class="short">Cancel outstanding changes on all changed records.</div>
  949. <div class="long">
  950. Cancel outstanding changes on all changed records. <div class="mdetail-params">
  951. <strong>Parameters:</strong>
  952. <ul><li>None.</li> </ul>
  953. <strong>Returns:</strong>
  954. <ul>
  955. <li><code>void</code></li>
  956. </ul>
  957. </div>
  958. </div>
  959. </div>
  960. </td>
  961. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#rejectChanges" href="output/Ext.data.Store.html#rejectChanges">Store</a></td>
  962. </tr>
  963. <tr class="method-row inherited alt expandable">
  964. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  965. <td class="sig">
  966. <a id="Ext.data.SimpleStore-reload"></a>
  967. <b>reload</b>(&nbsp;<span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void <div class="mdesc">
  968. <div class="short">Reloads the Record cache from the configured Proxy using the configured Reader and
  969. the options from the last load ope...</div>
  970. <div class="long">
  971. Reloads the Record cache from the configured Proxy using the configured Reader and
  972. the options from the last load operation performed. <div class="mdetail-params">
  973. <strong>Parameters:</strong>
  974. <ul><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing properties which may override the options
  975. used in the last load operation. See <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details (defaults to null, in which case
  976. the most recently used options are reused).</div></li> </ul>
  977. <strong>Returns:</strong>
  978. <ul>
  979. <li><code>void</code></li>
  980. </ul>
  981. </div>
  982. </div>
  983. </div>
  984. </td>
  985. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#reload" href="output/Ext.data.Store.html#reload">Store</a></td>
  986. </tr>
  987. <tr class="method-row inherited expandable">
  988. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  989. <td class="sig">
  990. <a id="Ext.data.SimpleStore-remove"></a>
  991. <b>remove</b>(&nbsp;<code>Ext.data.Record record</code>&nbsp;) : void <div class="mdesc">
  992. <div class="short">Remove a Record from the Store and fires the remove event.</div>
  993. <div class="long">
  994. Remove a Record from the Store and fires the remove event. <div class="mdetail-params">
  995. <strong>Parameters:</strong>
  996. <ul><li><code>record</code> : Ext.data.Record<div class="sub-desc">Th Ext.data.Record object to remove from the cache.</div></li> </ul>
  997. <strong>Returns:</strong>
  998. <ul>
  999. <li><code>void</code></li>
  1000. </ul>
  1001. </div>
  1002. </div>
  1003. </div>
  1004. </td>
  1005. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#remove" href="output/Ext.data.Store.html#remove">Store</a></td>
  1006. </tr>
  1007. <tr class="method-row inherited alt expandable">
  1008. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1009. <td class="sig">
  1010. <a id="Ext.data.SimpleStore-removeAll"></a>
  1011. <b>removeAll</b>() : void <div class="mdesc">
  1012. <div class="short">Remove all Records from the Store and fires the clear event.</div>
  1013. <div class="long">
  1014. Remove all Records from the Store and fires the clear event. <div class="mdetail-params">
  1015. <strong>Parameters:</strong>
  1016. <ul><li>None.</li> </ul>
  1017. <strong>Returns:</strong>
  1018. <ul>
  1019. <li><code>void</code></li>
  1020. </ul>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. </td>
  1025. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#removeAll" href="output/Ext.data.Store.html#removeAll">Store</a></td>
  1026. </tr>
  1027. <tr class="method-row inherited expandable">
  1028. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1029. <td class="sig">
  1030. <a id="Ext.data.SimpleStore-removeListener"></a>
  1031. <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  1032. <div class="short">Removes a listener</div>
  1033. <div class="long">
  1034. Removes a listener <div class="mdetail-params">
  1035. <strong>Parameters:</strong>
  1036. <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 handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  1037. <strong>Returns:</strong>
  1038. <ul>
  1039. <li><code>void</code></li>
  1040. </ul>
  1041. </div>
  1042. </div>
  1043. </div>
  1044. </td>
  1045. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  1046. </tr>
  1047. <tr class="method-row inherited alt expandable">
  1048. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1049. <td class="sig">
  1050. <a id="Ext.data.SimpleStore-resumeEvents"></a>
  1051. <b>resumeEvents</b>() : void <div class="mdesc">
  1052. <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
  1053. <div class="long">
  1054. Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
  1055. <strong>Parameters:</strong>
  1056. <ul><li>None.</li> </ul>
  1057. <strong>Returns:</strong>
  1058. <ul>
  1059. <li><code>void</code></li>
  1060. </ul>
  1061. </div>
  1062. </div>
  1063. </div>
  1064. </td>
  1065. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  1066. </tr>
  1067. <tr class="method-row inherited expandable">
  1068. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1069. <td class="sig">
  1070. <a id="Ext.data.SimpleStore-setDefaultSort"></a>
  1071. <b>setDefaultSort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void <div class="mdesc">
  1072. <div class="short">Sets the default sort column and order to be used by the next load operation.</div>
  1073. <div class="long">
  1074. Sets the default sort column and order to be used by the next load operation. <div class="mdetail-params">
  1075. <strong>Parameters:</strong>
  1076. <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</div></li> </ul>
  1077. <strong>Returns:</strong>
  1078. <ul>
  1079. <li><code>void</code></li>
  1080. </ul>
  1081. </div>
  1082. </div>
  1083. </div>
  1084. </td>
  1085. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#setDefaultSort" href="output/Ext.data.Store.html#setDefaultSort">Store</a></td>
  1086. </tr>
  1087. <tr class="method-row inherited alt expandable">
  1088. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1089. <td class="sig">
  1090. <a id="Ext.data.SimpleStore-sort"></a>
  1091. <b>sort</b>(&nbsp;<code>String fieldName</code>, <span class="optional" title="Optional">[<code>String dir</code>]</span>&nbsp;) : void <div class="mdesc">
  1092. <div class="short">Sort the Records.
  1093. If remote sorting is used, the sort is performed on the server, and the cache is
  1094. reloaded. If local...</div>
  1095. <div class="long">
  1096. Sort the Records.
  1097. If remote sorting is used, the sort is performed on the server, and the cache is
  1098. reloaded. If local sorting is used, the cache is sorted internally. <div class="mdetail-params">
  1099. <strong>Parameters:</strong>
  1100. <ul><li><code>fieldName</code> : String<div class="sub-desc">The name of the field to sort by.</div></li><li><code>dir</code> : String<div class="sub-desc">(optional) The sort order, "ASC" or "DESC" (defaults to "ASC")</div></li> </ul>
  1101. <strong>Returns:</strong>
  1102. <ul>
  1103. <li><code>void</code></li>
  1104. </ul>
  1105. </div>
  1106. </div>
  1107. </div>
  1108. </td>
  1109. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sort" href="output/Ext.data.Store.html#sort">Store</a></td>
  1110. </tr>
  1111. <tr class="method-row inherited expandable">
  1112. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1113. <td class="sig">
  1114. <a id="Ext.data.SimpleStore-sum"></a>
  1115. <b>sum</b>(&nbsp;<code>String property</code>, <code>Number start</code>, <code>Number end</code>&nbsp;) : Number <div class="mdesc">
  1116. <div class="short">Sums the value of <i>property</i> for each record between start and end and returns the result.</div>
  1117. <div class="long">
  1118. Sums the value of <i>property</i> for each record between start and end and returns the result. <div class="mdetail-params">
  1119. <strong>Parameters:</strong>
  1120. <ul><li><code>property</code> : String<div class="sub-desc">A field on your records</div></li><li><code>start</code> : Number<div class="sub-desc">The record index to start at (defaults to 0)</div></li><li><code>end</code> : Number<div class="sub-desc">The last record index to include (defaults to length - 1)</div></li> </ul>
  1121. <strong>Returns:</strong>
  1122. <ul>
  1123. <li><code>Number</code><div class="sub-desc">The sum</div></li>
  1124. </ul>
  1125. </div>
  1126. </div>
  1127. </div>
  1128. </td>
  1129. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#sum" href="output/Ext.data.Store.html#sum">Store</a></td>
  1130. </tr>
  1131. <tr class="method-row inherited alt expandable">
  1132. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1133. <td class="sig">
  1134. <a id="Ext.data.SimpleStore-suspendEvents"></a>
  1135. <b>suspendEvents</b>() : void <div class="mdesc">
  1136. <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
  1137. <div class="long">
  1138. Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
  1139. <strong>Parameters:</strong>
  1140. <ul><li>None.</li> </ul>
  1141. <strong>Returns:</strong>
  1142. <ul>
  1143. <li><code>void</code></li>
  1144. </ul>
  1145. </div>
  1146. </div>
  1147. </div>
  1148. </td>
  1149. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  1150. </tr>
  1151. <tr class="method-row inherited expandable">
  1152. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1153. <td class="sig">
  1154. <a id="Ext.data.SimpleStore-un"></a>
  1155. <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  1156. <div class="short">Removes a listener (shorthand for removeListener)</div>
  1157. <div class="long">
  1158. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  1159. <strong>Parameters:</strong>
  1160. <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 handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  1161. <strong>Returns:</strong>
  1162. <ul>
  1163. <li><code>void</code></li>
  1164. </ul>
  1165. </div>
  1166. </div>
  1167. </div>
  1168. </td>
  1169. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  1170. </tr>
  1171. </table>
  1172. <a id="Ext.data.SimpleStore-events"></a>
  1173. <h2>Public Events</h2>
  1174. <table cellspacing="0" class="member-table">
  1175. <tr>
  1176. <th class="sig-header" colspan="2">Event</th>
  1177. <th class="msource-header">Defined By</th>
  1178. </tr>
  1179. <tr class="event-row inherited expandable">
  1180. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1181. <td class="sig">
  1182. <a id="Ext.data.SimpleStore-add"></a>
  1183. <b>add</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Number index</code>&nbsp;) <div class="mdesc">
  1184. <div class="short">Fires when Records have been added to the Store</div>
  1185. <div class="long">
  1186. Fires when Records have been added to the Store <div class="mdetail-params">
  1187. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1188. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The array of Records added</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record(s) were added</div></li> </ul>
  1189. </div>
  1190. </div>
  1191. </div>
  1192. </td>
  1193. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-add" href="output/Ext.data.Store.html#event-add">Store</a></td>
  1194. </tr>
  1195. <tr class="event-row inherited alt expandable">
  1196. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1197. <td class="sig">
  1198. <a id="Ext.data.SimpleStore-beforeload"></a>
  1199. <b>beforeload</b> : (&nbsp;<code>Store this</code>, <code>Object options</code>&nbsp;) <div class="mdesc">
  1200. <div class="short">Fires before a request is made for a new data object. If the beforeload handler returns false
  1201. the load action will b...</div>
  1202. <div class="long">
  1203. Fires before a request is made for a new data object. If the beforeload handler returns false
  1204. the load action will be canceled. <div class="mdetail-params">
  1205. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1206. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li> </ul>
  1207. </div>
  1208. </div>
  1209. </div>
  1210. </td>
  1211. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-beforeload" href="output/Ext.data.Store.html#event-beforeload">Store</a></td>
  1212. </tr>
  1213. <tr class="event-row inherited expandable">
  1214. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1215. <td class="sig">
  1216. <a id="Ext.data.SimpleStore-clear"></a>
  1217. <b>clear</b> : (&nbsp;<code>Store this</code>&nbsp;) <div class="mdesc">
  1218. <div class="short">Fires when the data cache has been cleared.</div>
  1219. <div class="long">
  1220. Fires when the data cache has been cleared. <div class="mdetail-params">
  1221. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1222. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li> </ul>
  1223. </div>
  1224. </div>
  1225. </div>
  1226. </td>
  1227. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-clear" href="output/Ext.data.Store.html#event-clear">Store</a></td>
  1228. </tr>
  1229. <tr class="event-row inherited alt expandable">
  1230. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1231. <td class="sig">
  1232. <a id="Ext.data.SimpleStore-datachanged"></a>
  1233. <b>datachanged</b> : (&nbsp;<code>Store this</code>&nbsp;) <div class="mdesc">
  1234. <div class="short">Fires when the data cache has changed, and a widget which is using this Store
  1235. as a Record cache should refresh its view.</div>
  1236. <div class="long">
  1237. Fires when the data cache has changed, and a widget which is using this Store
  1238. as a Record cache should refresh its view. <div class="mdetail-params">
  1239. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1240. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li> </ul>
  1241. </div>
  1242. </div>
  1243. </div>
  1244. </td>
  1245. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-datachanged" href="output/Ext.data.Store.html#event-datachanged">Store</a></td>
  1246. </tr>
  1247. <tr class="event-row inherited expandable">
  1248. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1249. <td class="sig">
  1250. <a id="Ext.data.SimpleStore-load"></a>
  1251. <b>load</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record[] records</code>, <code>Object options</code>&nbsp;) <div class="mdesc">
  1252. <div class="short">Fires after a new set of Records has been loaded.</div>
  1253. <div class="long">
  1254. Fires after a new set of Records has been loaded. <div class="mdetail-params">
  1255. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1256. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>records</code> : Ext.data.Record[]<div class="sub-desc">The Records that were loaded</div></li><li><code>options</code> : Object<div class="sub-desc">The loading options that were specified (see <a ext:cls="Ext.data.Store" ext:member="load" href="output/Ext.data.Store.html#load">load</a> for details)</div></li> </ul>
  1257. </div>
  1258. </div>
  1259. </div>
  1260. </td>
  1261. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-load" href="output/Ext.data.Store.html#event-load">Store</a></td>
  1262. </tr>
  1263. <tr class="event-row inherited alt expandable">
  1264. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1265. <td class="sig">
  1266. <a id="Ext.data.SimpleStore-loadexception"></a>
  1267. <b>loadexception</b> : () <div class="mdesc">
  1268. <div class="short">Fires if an exception occurs in the Proxy during loading.
  1269. Called with the signature of the Proxy's "loadexception" ev...</div>
  1270. <div class="long">
  1271. Fires if an exception occurs in the Proxy during loading.
  1272. Called with the signature of the Proxy's "loadexception" event. <div class="mdetail-params">
  1273. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1274. <ul><li>None.</li> </ul>
  1275. </div>
  1276. </div>
  1277. </div>
  1278. </td>
  1279. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-loadexception" href="output/Ext.data.Store.html#event-loadexception">Store</a></td>
  1280. </tr>
  1281. <tr class="event-row inherited expandable">
  1282. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1283. <td class="sig">
  1284. <a id="Ext.data.SimpleStore-metachange"></a>
  1285. <b>metachange</b> : (&nbsp;<code>Store this</code>, <code>Object meta</code>&nbsp;) <div class="mdesc">
  1286. <div class="short">Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders.</div>
  1287. <div class="long">
  1288. Fires when this store's reader provides new metadata (fields). This is currently only supported for JsonReaders. <div class="mdetail-params">
  1289. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1290. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>meta</code> : Object<div class="sub-desc">The JSON metadata</div></li> </ul>
  1291. </div>
  1292. </div>
  1293. </div>
  1294. </td>
  1295. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-metachange" href="output/Ext.data.Store.html#event-metachange">Store</a></td>
  1296. </tr>
  1297. <tr class="event-row inherited alt expandable">
  1298. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1299. <td class="sig">
  1300. <a id="Ext.data.SimpleStore-remove"></a>
  1301. <b>remove</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>Number index</code>&nbsp;) <div class="mdesc">
  1302. <div class="short">Fires when a Record has been removed from the Store</div>
  1303. <div class="long">
  1304. Fires when a Record has been removed from the Store <div class="mdetail-params">
  1305. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1306. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was removed</div></li><li><code>index</code> : Number<div class="sub-desc">The index at which the record was removed</div></li> </ul>
  1307. </div>
  1308. </div>
  1309. </div>
  1310. </td>
  1311. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-remove" href="output/Ext.data.Store.html#event-remove">Store</a></td>
  1312. </tr>
  1313. <tr class="event-row inherited expandable">
  1314. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  1315. <td class="sig">
  1316. <a id="Ext.data.SimpleStore-update"></a>
  1317. <b>update</b> : (&nbsp;<code>Store this</code>, <code>Ext.data.Record record</code>, <code>String operation</code>&nbsp;) <div class="mdesc">
  1318. <div class="short">Fires when a Record has been updated</div>
  1319. <div class="long">
  1320. Fires when a Record has been updated <div class="mdetail-params">
  1321. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  1322. <ul><li><code>this</code> : Store<div class="sub-desc"></div></li><li><code>record</code> : Ext.data.Record<div class="sub-desc">The Record that was updated</div></li><li><code>operation</code> : String<div class="sub-desc">The update operation being performed. Value may be one of:
  1323. <pre><code>Ext.data.Record.EDIT
  1324. Ext.data.Record.REJECT
  1325. Ext.data.Record.COMMIT</code></pre></div></li> </ul>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </td>
  1330. <td class="msource"><a ext:cls="Ext.data.Store" ext:member="#event-update" href="output/Ext.data.Store.html#event-update">Store</a></td>
  1331. </tr>
  1332. </table>
  1333. </div>