@bridgeline-digital/hawksearch-handlebars-ui 2.0.0-beta.7 → 2.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +6 -6
- package/dist/configuration/configuration.models.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/raw/raw-autocomplete.models.d.ts +1 -0
- package/dist/models/raw/raw-recommendation.models.d.ts +1 -0
- package/dist/models/raw/raw-search.models.d.ts +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/Configuration.HawkSearchConfig.html +5 -0
- package/docs/modules/Components.html +6 -9
- package/package.json +2 -2
- package/readme.md +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ##
|
|
2
|
+
* ## Overriding Component Templates
|
|
3
3
|
*
|
|
4
4
|
* This library was designed to be flexible and allow total customization of the markup used by all components.
|
|
5
5
|
*
|
|
6
|
-
* ### Overriding Templates
|
|
7
|
-
*
|
|
8
6
|
* There are three ways to replace the Handlebars template used by a component:
|
|
9
7
|
*
|
|
10
8
|
* - Pass a template HTML string containing a Handlebars template.
|
|
11
9
|
* - Pass the ID of a template element containing a Handlebars template.
|
|
12
10
|
* - Define the new Handlebars template as the child content of a control
|
|
13
11
|
*
|
|
14
|
-
*
|
|
12
|
+
* *Note: To avoid conflicts with BigCommerce and other systems that Handlebars for server-side rendering, this library also supports an alternate `[[value]]` syntax to work the same as the default Handlerbars `{{value}}` syntax.*
|
|
13
|
+
*
|
|
14
|
+
* ### Passing an HTML string
|
|
15
15
|
*
|
|
16
16
|
* In your HTML file, define the template content directly in the configuration options:
|
|
17
17
|
*
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
* </html>
|
|
52
52
|
* ```
|
|
53
53
|
*
|
|
54
|
-
*
|
|
54
|
+
* ### Creating a template element
|
|
55
55
|
*
|
|
56
56
|
* In your HTML file, add the custom markup to a `template` element and pass the ID in the configuration options:
|
|
57
57
|
*
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
*
|
|
96
96
|
* *Note: This approach tends to be easier to manage than the previous option as it is more compatible with popular HTML editors and templates can potentially be loaded from separate files using Server-side Includes (SSI).*
|
|
97
97
|
*
|
|
98
|
-
*
|
|
98
|
+
* ### Setting control content
|
|
99
99
|
*
|
|
100
100
|
* In your HTML file, add the custom markup as the content of a component element:
|
|
101
101
|
*
|