Merge pull request #2396 from thereloaded/gh-pages
query as third parameter to ajax results callback documentation
This commit is contained in:
commit
aef09b7ed0
@ -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><returns></td><td>object</td><td>Results object. See "options.callback" in the "query" function for format.</td></tr>
|
||||
</table>
|
||||
</td></tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user