diff --git a/README.md b/README.md index 807f390..8f7e0e7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Automagical UI and sample react controls for [Azure Search](https://docs.microso [![Build Status](https://travis-ci.org/EvanBoyle/AzSearch.js.svg?branch=master)](https://travis-ci.org/EvanBoyle/AzSearch.js) ## Live Demo -* [Real estate demo](https://azsearchstore.azurewebsites.net/realestate.html) | [source](https://github.com/EvanBoyle/AzSearch.js/blob/master/realestate.html) +* [Real estate demo](https://azsearchstore.azurewebsites.net/realestate.html) | [source](https://github.com/EvanBoyle/AzSearch.js/blob/master/samples/realestate.html) ## Get started developing an AzSearch.js app in Typescript * [Sample TypeScript project](https://github.com/EvanBoyle/AzSearch.jsTypeScriptStarter): clone, customize, and go. @@ -136,7 +136,7 @@ Sets basic configuration to connect to service. Expects an object of type Config ### addSearchBox * ```addSearchBox(htmlId, suggestionsParametersUpdate?, suggestionValueKey?, suggestionTemplate?, css?)``` -Adds an input field capable of suggestions/autocomplete and executing search requests. Attaches on the specified htmlID. Optionally takes SuggestionUpdateParameters (from AzSearchStore), an optional key indicating which suggestion value should be set when a suggestion is clicked (defaults to "@search.text"), a [mustache template](https://mustache.github.io/mustache.5.html) to customize rendering, or css overrides. When template is not specified, a json representation of the suggestions is displayed. When specified, the mustache template is rendered against east suggestion. The content of each suggestion can be customized by adding fields via the select parameter as shown in the example below, or by setting a +Adds an input field capable of suggestions/autocomplete and executing search requests. Attaches on the specified htmlID. Optionally takes SuggestionUpdateParameters (from AzSearchStore), an optional key indicating which suggestion value should be set when a suggestion is clicked (defaults to "@search.text"), a [mustache template](https://mustache.github.io/mustache.5.html) to customize rendering, or css overrides. When template is not specified, a json representation of the suggestions is displayed. When specified, the mustache template is rendered against east suggestion. The content of each suggestion can be customized by adding fields via the select parameter as shown in the example below, or by setting a [suggestions processor](https://github.com/EvanBoyle/AzSearchStore#client-side-results-processing) on the store. ```js // css class overrides diff --git a/realestate.html b/realestate.html deleted file mode 100644 index f482973..0000000 --- a/realestate.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - - - - Real Estate - - - - - -
- - -
-
- -
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/realestate.local.html b/realestate.local.html deleted file mode 100644 index c613dbb..0000000 --- a/realestate.local.html +++ /dev/null @@ -1,301 +0,0 @@ - - - - - - - - - - - Real Estate - - - - - -
- - -
-
- -
-
-
-
-
-
-
-
-
- - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/samples/realestate/realestate.html b/samples/realestate/realestate.html new file mode 100644 index 0000000..b16ce21 --- /dev/null +++ b/samples/realestate/realestate.html @@ -0,0 +1,302 @@ + + + + + + + + + + Real Estate + + + + + +
+ + +
+
+ +
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/samples/realestate/realestate.no-filters.html b/samples/realestate/realestate.no-filters.html new file mode 100644 index 0000000..f29f0e4 --- /dev/null +++ b/samples/realestate/realestate.no-filters.html @@ -0,0 +1,214 @@ + + + + + + + + + + Real Estate + + + + + +
+ + +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + \ No newline at end of file