From b574eeedb58f0145bc5e00d97d213344463b44b2 Mon Sep 17 00:00:00 2001 From: caharkness Date: Thu, 27 Feb 2025 14:35:59 -0700 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ff8938b..be43598 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ A JavaScript and CSS library for augmenting raw HTML inputs with modern search features +--- + ### Basic Usage Include both the `SearchableInput.js` and `SearchableInput.css` files in your page's source and wrap any text input like the following: @@ -17,6 +19,8 @@ Include both the `SearchableInput.js` and `SearchableInput.css` files in your pa +--- + ### Shared Item Source If multiple inputs require the same source of data, put your `div.item` options in a hidden div somewhere in the document accessible by its `id` attribute: @@ -34,6 +38,8 @@ Then, in the `div.items` container beneath the input, set its `data-source` attr
+--- + ### Items from GET Request Alternatively, you can set the `data-source-api` to access a GET endpoint that responds with `application/json`: