1
0
mirror of synced 2024-11-22 13:06:08 +03:00

Merge pull request #544 from deeky666/gh-pages

Add documentation for 'formatLoadMore' parameter, fix #530
This commit is contained in:
Igor Vaynberg 2012-11-02 09:08:23 -07:00
commit 2857356dcb

View File

@ -1074,6 +1074,15 @@ function format(state) {
<tr><td>&lt;returns&gt;</td><td>string</td><td>Message html</td></tr>
</table>
</td></tr>
<tr><td>formatLoadMore</td><td>function</td><td>
Function used to render the &quot;Loading more results...&quot; message
<pre>formatLoadMore(pageNumber)</pre>
<table class="table table-bordered table-striped">
<tr><th>Parameter</th><th>Type</th><th>Description</th></tr>
<tr><td>pageNumber</td><td>int</td><td>1-based page number tracked by Select2 for use with infinite scrolling of results</td></tr>
<tr><td>&lt;returns&gt;</td><td>string</td><td>Message html</td></tr>
</table>
</td></tr>
<tr><td>createSearchChoice</td><td>function</td><td>
Creates a new selectable choice from user's search term. Allows creation of choices not available via the query
function. Useful when the user can create choices on the fly, eg for the 'tagging' usecase.