From c04cadc6292c67ccc2aaf6fd14aba986339a2133 Mon Sep 17 00:00:00 2001 From: Lars Noack Date: Thu, 15 Feb 2024 15:15:55 +0100 Subject: [PATCH] feat: documented config defaults --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 4f49648..6693c09 100644 --- a/README.md +++ b/README.md @@ -221,6 +221,13 @@ Choices works with the following input types, referenced in the documentation as ## Configuration Options +If you want to set global defaults for all instances of Choices, you can use the `Choices.defaults.options` object. +This works with every option. + +```js +Choices.defaults.options.noResultsText = 'No results found'; +``` + ### silent **Type:** `Boolean` **Default:** `false`