Merge pull request #544 from deeky666/gh-pages
Add documentation for 'formatLoadMore' parameter, fix #530
This commit is contained in:
commit
2857356dcb
@ -1074,6 +1074,15 @@ function format(state) {
|
|||||||
<tr><td><returns></td><td>string</td><td>Message html</td></tr>
|
<tr><td><returns></td><td>string</td><td>Message html</td></tr>
|
||||||
</table>
|
</table>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
<tr><td>formatLoadMore</td><td>function</td><td>
|
||||||
|
Function used to render the "Loading more results..." 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><returns></td><td>string</td><td>Message html</td></tr>
|
||||||
|
</table>
|
||||||
|
</td></tr>
|
||||||
<tr><td>createSearchChoice</td><td>function</td><td>
|
<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
|
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.
|
function. Useful when the user can create choices on the fly, eg for the 'tagging' usecase.
|
||||||
|
Loading…
Reference in New Issue
Block a user