mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-17 21:16:34 +02:00
Update README
This commit is contained in:
parent
2288d47672
commit
ff08408c84
|
@ -109,7 +109,7 @@ will be returned. If you target one element, that instance will be returned.
|
||||||
return `Press Enter to add <b>"${value}"</b>`;
|
return `Press Enter to add <b>"${value}"</b>`;
|
||||||
},
|
},
|
||||||
maxItemText: (maxItemCount) => {
|
maxItemText: (maxItemCount) => {
|
||||||
return `Only ${maxItemCount} values can be added.`;
|
return `Only ${maxItemCount} values can be added`;
|
||||||
},
|
},
|
||||||
itemComparer: (choice, item) => {
|
itemComparer: (choice, item) => {
|
||||||
return choice === item;
|
return choice === item;
|
||||||
|
@ -467,7 +467,7 @@ const example = new Choices(element, {
|
||||||
**Usage:** The text that is shown when a user has inputted a new item but has not pressed the enter key. To access the current input value, pass a function with a `value` argument (see the [default config](https://github.com/jshjohnson/Choices#setup) for an example), otherwise pass a string.
|
**Usage:** The text that is shown when a user has inputted a new item but has not pressed the enter key. To access the current input value, pass a function with a `value` argument (see the [default config](https://github.com/jshjohnson/Choices#setup) for an example), otherwise pass a string.
|
||||||
|
|
||||||
### maxItemText
|
### maxItemText
|
||||||
**Type:** `String/Function` **Default:** `Only ${maxItemCount} values can be added.`
|
**Type:** `String/Function` **Default:** `Only ${maxItemCount} values can be added`
|
||||||
|
|
||||||
**Input types affected:** `text`
|
**Input types affected:** `text`
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue