From 835ea12ac9cd6865aef29e58a3bba7e8512e74a0 Mon Sep 17 00:00:00 2001 From: Alexander Schlegel Date: Sat, 27 Aug 2022 16:50:32 +0200 Subject: [PATCH] add option "uniqueItemText" and "customAddItemText" into README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d4e86e6..4f49648 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,8 @@ Or include Choices directly: noResultsText: 'No results found', noChoicesText: 'No choices to choose from', itemSelectText: 'Press to select', + uniqueItemText: 'Only unique values can be added', + customAddItemText: 'Only values matching specific conditions can be added', addItemText: (value) => { return `Press Enter to add "${value}"`; }, @@ -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. -**Deprecation Warning:** This will default to `false` in a future release. +**Deprecation Warning:** This will default to `false` in a future release. ### duplicateItemsAllowed