1
0
mirror of synced 2025-02-04 06:09:23 +03:00

Merge pull request #2396 from thereloaded/gh-pages

query as third parameter to ajax results callback documentation
This commit is contained in:
Kevin Brown 2014-05-27 16:50:57 -04:00
commit aef09b7ed0

View File

@ -1555,12 +1555,12 @@ $("#select").select2({
</td></tr>
<tr><td>results</td><td>function</td><td>
Function used to build the query results object from the ajax response
<pre>results(data, page)</pre>
<pre>results(data, page, query)</pre>
<table class="table table-bordered table-striped">
<tr><th>Parameter</th><th>Type</th><th>Description</th></tr>
<tr><td>data</td><td>object</td><td>Retrieved data.</td></tr>
<tr><td>page</td><td>int</td><td>Page number that was passed into the <code>data</code> function above.</td></tr>
<tr><td>context</td><td>object</td><td>See <a href="#doc-query-options-callback"><code>options.context</code></a> parameter to the <a href="#doc-query"><code>query</code></a> function above.</td></tr>
<tr><td>query</td><td>object</td><td>The query object used to request this set of results.</td></tr>
<tr><td>&lt;returns&gt;</td><td>object</td><td>Results object. See &quot;options.callback&quot; in the &quot;query&quot; function for format.</td></tr>
</table>
</td></tr>