diff --git a/select2-latest.html b/select2-latest.html index 8ca9608f..b82af447 100644 --- a/select2-latest.html +++ b/select2-latest.html @@ -1340,8 +1340,9 @@ format(item) {

By default when attached to a select css classes from options will be automatically copied.

- formatNoMatchesfunction - Function used to render the "No matches" message + formatNoMatchesstring/function + String containing "No matches" message, or
+ Function used to render the message
formatNoMatches(term)
@@ -1349,8 +1350,9 @@ format(item) {
ParameterTypeDescription
<returns>stringMessage html.
- formatSearchingfunction - Function used to render the "Searching..." message that is displayed while + formatSearchingstring/function + String containing "Searching..." message, or
+ Function used to render the message that is displayed while search is in progress.
formatSearching()
@@ -1358,8 +1360,9 @@ format(item) {
<returns>stringMessage html or null/undefined to disable the message.
- formatInputTooShortfunction - Function used to render the "Search input too short" message. + formatInputTooShortstring/function + String containing "Search input too short" message, or
+ Function used to render the message.
formatInputTooShort(term, minLength)
@@ -1368,8 +1371,20 @@ format(item) {
ParameterTypeDescription
<returns>stringMessage html.
- formatSelectionTooBigfunction - Function used to render the "You cannot select any more choices" message. + formatInputTooLongstring/function + String containing "Search input too long" message, or
+ Function used to render the message. +
formatInputTooLong(term, maxLength)
+ + + + + +
ParameterTypeDescription
termstringSearch string entered by user.
maxLengthintMaximum required term length.
<returns>stringMessage html.
+ + formatSelectionTooBigstring/function + String containing "You cannot select any more choices" message, or
+ Function used to render the message.
formatSelectionTooBig(maxSize)
@@ -1377,6 +1392,16 @@ format(item) {
ParameterTypeDescription
<returns>stringMessage html.
+ formatLoadMorestring/function + String containing "Loading more results…" message, or
+ Function used to render the message. +
formatLoadMore(pageNumber)
+ + + + +
ParameterTypeDescription
pageNumberstringThe current page.
<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.