From e77e5adde39f9a84647af3a17a0a37bc37c9cb2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20M=C3=BCller?= Date: Wed, 31 Oct 2012 23:17:08 +0100 Subject: [PATCH] Add documentation for 'formatLoadMore' parameter, fix #530 --- index.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.html b/index.html index 9c8c0cf3..0ff8772c 100755 --- a/index.html +++ b/index.html @@ -1074,6 +1074,15 @@ function format(state) { <returns>stringMessage html +formatLoadMorefunction + Function used to render the "Loading more results..." message +
formatLoadMore(pageNumber)
+ + + + +
ParameterTypeDescription
pageNumberint1-based page number tracked by Select2 for use with infinite scrolling of results
<returns>stringMessage html
+ createSearchChoicefunction 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.