From e7e37e2ff90e125f846bd98d6b8f278524ead79e Mon Sep 17 00:00:00 2001 From: brianvoe Date: Wed, 11 Sep 2024 16:45:21 -0500 Subject: [PATCH] readme - minor update --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 262c62ef..45dc4143 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ new SlimSelect({ timeoutDelay: 200, maxValuesShown: 20, maxValuesMessage: '{number} selected', + addableText: 'Press "Enter" to add {value}', }, }) ``` @@ -167,7 +168,7 @@ new SlimSelect({ events: { search: (searchValue: string, currentData: DataArray) => Promise | DataArrayPartial searchFilter: (option: Option, search: string) => boolean - addable: (value: string) => Promise | OptionOptional | string + addable: (value: string) => Promise | OptionOptional | string | Error beforeChange: (newVal: Option[], oldVal: Option[]) => boolean | void afterChange: (newVal: Option[]) => void beforeOpen: () => void