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 option
s will be automatically copied.
- formatNoMatches | function |
- Function used to render the "No matches" message
+ |
formatNoMatches | string/function |
+ String containing "No matches" message, or
+ Function used to render the message
formatNoMatches(term)
Parameter | Type | Description |
@@ -1349,8 +1350,9 @@ format(item) {
<returns> | string | Message html. |
|
- formatSearching | function |
- Function used to render the "Searching..." message that is displayed while
+ |
formatSearching | string/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> | string | Message html or null /undefined to disable the message. |
|
- formatInputTooShort | function |
- Function used to render the "Search input too short" message.
+ |
formatInputTooShort | string/function |
+ String containing "Search input too short" message, or
+ Function used to render the message.
formatInputTooShort(term, minLength)
Parameter | Type | Description |
@@ -1368,8 +1371,20 @@ format(item) {
<returns> | string | Message html. |
|
- formatSelectionTooBig | function |
- Function used to render the "You cannot select any more choices" message.
+ |
formatInputTooLong | string/function |
+ String containing "Search input too long" message, or
+ Function used to render the message.
+ formatInputTooLong(term, maxLength)
+
+ Parameter | Type | Description |
+ term | string | Search string entered by user. |
+ maxLength | int | Maximum required term length. |
+ <returns> | string | Message html. |
+
+ |
+ formatSelectionTooBig | string/function |
+ String containing "You cannot select any more choices" message, or
+ Function used to render the message.
formatSelectionTooBig(maxSize)
Parameter | Type | Description |
@@ -1377,6 +1392,16 @@ format(item) {
<returns> | string | Message html. |
|
+ formatLoadMore | string/function |
+ String containing "Loading more results…" message, or
+ Function used to render the message.
+ formatLoadMore(pageNumber)
+
+ Parameter | Type | Description |
+ pageNumber | string | The current page. |
+ <returns> | string | Message html. |
+
+ |
createSearchChoice | function |
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.
|