mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-08 08:52:19 +02:00
Merge pull request #1051 from Sysix/update-readme
Documentation: Add option "uniqueItemText" and "customAddItemText" to README
This commit is contained in:
commit
2730d7aad4
|
@ -151,6 +151,8 @@ Or include Choices directly:
|
||||||
noResultsText: 'No results found',
|
noResultsText: 'No results found',
|
||||||
noChoicesText: 'No choices to choose from',
|
noChoicesText: 'No choices to choose from',
|
||||||
itemSelectText: 'Press to select',
|
itemSelectText: 'Press to select',
|
||||||
|
uniqueItemText: 'Only unique values can be added',
|
||||||
|
customAddItemText: 'Only values matching specific conditions can be added',
|
||||||
addItemText: (value) => {
|
addItemText: (value) => {
|
||||||
return `Press Enter to add <b>"${value}"</b>`;
|
return `Press Enter to add <b>"${value}"</b>`;
|
||||||
},
|
},
|
||||||
|
@ -342,7 +344,7 @@ Pass an array of objects:
|
||||||
|
|
||||||
**Usage:** Whether HTML should be rendered in all Choices elements. If `false`, all elements (placeholder, items, etc.) will be treated as plain text. If `true`, this can be used to perform XSS scripting attacks if you load choices from a remote source.
|
**Usage:** Whether HTML should be rendered in all Choices elements. If `false`, all elements (placeholder, items, etc.) will be treated as plain text. If `true`, this can be used to perform XSS scripting attacks if you load choices from a remote source.
|
||||||
|
|
||||||
**Deprecation Warning:** This will default to `false` in a future release.
|
**Deprecation Warning:** This will default to `false` in a future release.
|
||||||
|
|
||||||
### duplicateItemsAllowed
|
### duplicateItemsAllowed
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue